Possible to allow guide button to act as a button?

Discussion and Development board for the popular XBOX(360) controller driver.


CrazySteve88
Junior Member
Posts: 1
Joined: Thu Nov 19, 2009 2:20 pm

Possible to allow guide button to act as a button?

Post by CrazySteve88 »

I noticed with Morii's xbox drivers its possible to set the guide button as whatever button you like and use it with direct input games. Would it be possible to do this with xbcd? I know right now its used to switch layouts(or ... whatever it does, I never used it) surely it would be possible to change this?

Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

Possible to allow guide button to act as a button?

Post by Squall Leonhart »

possible, sure.

likely. not really.

 

theres currently no HID developer available to further the driver itself

parallaxtz
Junior Member
Posts: 3
Joined: Thu Jun 14, 2012 12:33 am

Possible to allow guide button to act as a button?

Post by parallaxtz »

So, I'd be willing to do some development on the driver. It'd be my frist driver (HID or otherwise). Certainly not my first programming project, as that's what I do for work.

 

I actually want to use the driver's both at work and home, but there's just a couple things that don't always work reliably. At the moment, I have two different custom drivers that work pretty alright separately, but they cause each other to stop working when used together.

 

The first driver is XBCD. The second is a chatpad driver.

 

My only problem at the moment is the actually getting set up to build the driver correctly. The instructions (src_readme.txt) aren't very specific about getting the build environment set up. They mention using two different build environments, at least one of which is no longer available; neither of which appear to include make.

 

I am currently continueing down the path with setting up the WDK 7 to see if that gets me anywhere. If you can offer any assistance to speed my getting set up, that would be most appreciated.

Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

Possible to allow guide button to act as a button?

Post by Squall Leonhart »

the last time i built the drivers, i used the now defunct DDK, it was simply a matter of installing the ddk then navigating (or opening a cmd prompt) a the location of the build file and then executing the command to build for each arch type.

 

Of the things that need fixing currently, the BSOD caused by full range on 360 controllers (Full range algorythm is not implemented for the 64bit path, and im not sure why it causes bsods on the 360 controllers) and the case of the setup utility not reflecting the correct raw values on the XBOX tab,

 

fixing the Setup tool for 360 controls may require a background in delphi, of course, i've long sought after a C+ developer to port it over to MFC or ATL so that it can be built as an actual application instead of a DLL.

parallaxtz
Junior Member
Posts: 3
Joined: Thu Jun 14, 2012 12:33 am

Possible to allow guide button to act as a button?

Post by parallaxtz »

Depending on what sort of config file/whatever it writes out, it probably would be pretty straight forward to write something in Python/QT. This is what we do where I work for most GUI tools, since it's generally a lot faster to do that instead of C++/MFC/ATL.

 

WDK7 is installing. We'll see if that works. It claims it can handle drivers for XP, Vista, and 7.

 

Oh also, of course, the Python/QT can be packaged as an EXE pretty easily, rather than running a DLL or a PY. I haven't done much ATL/MFC.

Last edited by parallaxtz on Thu Jun 14, 2012 1:38 am, edited 1 time in total.
Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

Possible to allow guide button to act as a button?

Post by Squall Leonhart »

can python refer to a manifest for auto elevation?

parallaxtz
Junior Member
Posts: 3
Joined: Thu Jun 14, 2012 12:33 am

Possible to allow guide button to act as a button?

Post by parallaxtz »

A quick search shows that four options are available:

 

  • wrapper w/ manifest

  • ctypes wrapper for CreateElevatedProcess API

  • python ShellExecuteEx

  • elevate powertool (i have used this one before, but to elevate batch scripts)

 

I am guessing that ShellExecuteEx is the most straightforward to maintain, as it would be self contained within the python program.

Last edited by parallaxtz on Thu Jun 14, 2012 2:03 am, edited 1 time in total.
legend80
Junior Member
Posts: 2
Joined: Thu Mar 10, 2011 10:41 pm

Possible to allow guide button to act as a button?

Post by legend80 »

I know right now its used to switch layouts(or ... whatever it does, I never used it) surely it would be possible to change this?

 

Whatever happens don't kill the existing functionality. I swap profiles on a lot on several controllers and need visual feedback as to what I'm set to. Allowing it to do more is fine, just so long as users can still have this functionality.

Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

Possible to allow guide button to act as a button?

Post by Squall Leonhart »

ok, the setup utility is fixed

 

The XBCD driver itself does need rewriting because the current code uses a poor hackish attempt at vectors instead of float points (because the Win2003 64bit ddk at the time didn't support Float point to SSE conversion, the new versions so)

 

The Fullrange bsod, which im not certain why it occurs (because there is not even code that enables in in the 64bit path) is probably related in some way

tysonrss
Junior Member
Posts: 39
Joined: Mon Jun 25, 2012 8:26 pm

Possible to allow guide button to act as a button?

Post by tysonrss »

I've always wanted to use the guide button, I wonder why it isn't workable anyway.

Locked