Main > Software Forum
Xbox 360 XInput keyboard hack (works for SFIV, MKK, SFxTekken, Etc)
Howard_Casto:
--- Quote from: BadMouth on September 21, 2015, 06:54:00 am ---Howard,
If you scroll through the thread you'll see a thread by TheManuel with settings for all the pc fighting games. Before switching to hacked fightpads, I used this for most of the steam games on my cab. The one game it won't work with is Injustice (and I assume mkx). That requires some type of "hook" setting this old version doesn't support. I know this because it's basically an old version of x360ce. We've bugged the x360ce devs to add back keyboard support, but they don't seem interested. Not sure if it's open source, but if so I'd start there if you're interested. There is some info in the Injustice thread about which revision of x360ce this is based on.
--- End quote ---
I haven't wrote a dll since college, especially a C++ dll, but there wouldn't be much to this one.... just read the ini files for settings and add a keyboard hook. I'd probably go the 360ce route as well and add in joystick support and force-feedback.
I'm looking at the xinput specs now:
https://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sdk.reference.xinputgetstate(v=vs.85).aspx
It looks like they've added a few since windows 8, but most are irrelevant.
For battery level and the audio stuff I can just return a null value... keyboard state refers to the chatpad.... get capabilities could always return the default gamepad.... So all that's left is get state (read the joystick) and set state (write the rumble). I think there are one or two hidden functions as well... like I know at a certain offset (unlabeled) you can read the guide button's status along with the joystick status.
But yeah, I'll look into 360ce when I get a chance... if they've already done most of this it would be exceedingly trivial to add in a keyboard hook.
I could do some cool stuff with the battery status.... my guess is on modern pc games the game pauses when the battery is low just like on the consoles (I used wired pads on my pc). If that's the case it could be used to auto-pause any game and bring up a menu or what have you.
BadMouth:
--- Quote from: Howard_Casto on September 22, 2015, 01:17:35 am ---
--- Quote from: PL1 on September 21, 2015, 06:17:54 am ---Any specific wording that you'd recommend?
--- End quote ---
How about 360 gamepad 2 keyboard hack (works for street fighter iv and many other games).
--- End quote ---
Sounds backwards.
How about:
Keyboard encoder to virtual xbox360 controller for pc games (SFIV, MKK, SFxTekken, Etc)?
Howard_Casto:
Much better. :)
DeLuSioNal29:
I changed it to this:
Xbox 360 XInput keyboard hack (works for SFIV, MKK, SFxTekken, Etc)
Howard_Casto:
Badmouth: If you'd link me to the thread you were talking about earlier I'd appreciate it. I doubt I'll have time to do all the stuff I mentioned, but fixing the broken keyboard stuff.... if it's possible I can do that. Keyboard hooking is my thing. ;)