I want to assign Xbox One X D-Pad Right to the number 1 on keyboard, but how?

Ask gaming related questions (AHK v1.1 and older)
jehodon
Posts: 1
Joined: 03 Oct 2022, 18:13

I want to assign Xbox One X D-Pad Right to the number 1 on keyboard, but how?

Post by jehodon » 04 Oct 2022, 14:29

I've tried the joy::1 thing but it does not work.

User avatar
boiler
Posts: 16774
Joined: 21 Dec 2014, 02:44

Re: I want to assign Xbox One X D-Pad Right to the number 1 on keyboard, but how?

Post by boiler » 04 Oct 2022, 15:44

The D-pad cannot be set up as a hotkey like the controller buttons can be. Its state needs to be checked using GetKeyState() like the other analog elements of a control (triggers, for example). See the Joystick section of the documentation.

Post Reply

Return to “Gaming Help (v1)”