Code: Select all
~1Joy1::
Return
Code: Select all
~1Joy1::
Return
Code: Select all
If GetKeyState("1JoyName")
{
Hotkey, 1Joy8, 1J8
}
1J8:
;Do a thing
Return
Yeah this can work. It might have been my thread you found. My ultimate solution was to switch to evilc's joystickwrapper viewtopic.php?t=28889 (I'm using xinput)chinagreenelvis wrote: ↑25 Mar 2022, 13:09Thanks, that is the correct answer. I found it in an older thread about high CPU usage when defining hotkeys for disconnected controllers.
My particular solution was the same as in that thread, to poll the controller at the start of the script and then map hotkeys to subroutines.
Users browsing this forum: Google [Bot] and 98 guests