Keystroke on Buttonpress on PC
4 posts
• Page 1 of 1
Keystroke on Buttonpress on PC
Is it possible to assign buttonpress on PC with XBOX Controller attached to send keystroke to PC.
So when I press X Button PC gets input that the Num1 key has been pressed.
Possible?
So when I press X Button PC gets input that the Num1 key has been pressed.
Possible?
-
yohimbe - Sergeant Major
- Posts: 84
- Joined: Sun Mar 01, 2015 7:27 pm
Re: Keystroke on Buttonpress on PC
Perhaps via a PC app that remaps button bindings on an Xbox controller.
I don't think you can do this on T2, it works the other way around by translating m/kb input to controller buttons.
I don't think you can do this on T2, it works the other way around by translating m/kb input to controller buttons.
-
antithesis - Colonel
- Posts: 1912
- Joined: Sat May 28, 2016 10:45 pm
Re: Keystroke on Buttonpress on PC
It's possible, set your output to HID, and use code like this:
- Code: Select all
#include <xb1.gph>
#include <keyboard.gph>
main {
key_set(KEY_W, (int)get_actual(XB1_X)); // W is pressed if XB1_X is pressed
}
-
Buffy - Lieutenant
- Posts: 422
- Joined: Wed Jul 20, 2016 5:23 am
Re: Keystroke on Buttonpress on PC
Buffy to the rescue!
You learn something new every day...
You learn something new every day...
-
antithesis - Colonel
- Posts: 1912
- Joined: Sat May 28, 2016 10:45 pm
4 posts
• Page 1 of 1
Return to GPC2 Script Programming
Who is online
Users browsing this forum: No registered users and 147 guests