Kiibie Posted November 6, 2017 Share Posted November 6, 2017 Hello! I've made a character mod that uses special attacks when pressing R and T on the keyboard. I was wondering if it was possible to add Xbox buttons too, to enable the attacks when I play with a controller. If it's possible, how may I proceed for the coding? Here's the keybinding code for the keyboard: local fire_attack = GLOBAL.KEY_R local protective_shield = GLOBAL.KEY_T Thanks! Link to comment Share on other sites More sharing options...
mikey99222 Posted November 18, 2017 Share Posted November 18, 2017 Maybe this will help? D-pad up: joystick button 5 D-pad down: joystick button 6 D-pad left: joystick button 7 D-pad right: joystick button 8 start: joystick button 9 back: joystick button 10 left stick(click): joystick button 11 right stick(click): joystick button 12 left bumper: joystick button 13 right bumper: joystick button 14 center("x") button: joystick button 15 A: joystick button 16 B: joystick button 17 X: joystick button 18 Y: joystick button 19 Link to comment Share on other sites More sharing options...
Kiibie Posted November 19, 2017 Author Share Posted November 19, 2017 @mikey99222 Ohhh it might if I can use it directly! Where did you find that? Is it from a specific lua in the DST folders? Link to comment Share on other sites More sharing options...
Kodi-Fox Posted January 21 Share Posted January 21 @Kiibie Did you manage to add controller key binding? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now