Jump to content
Visual Boy Advance-M
CrazySteve88

Possible to allow guide button to act as a button?

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

I did not know the name, but I found it while i was looking for a program that could suppress Xinput but leaving the PC believe there was still a Xinput controller in. It could not do that..

 

But you could do funny things with your Guide-button:)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×