Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Button Mapping For Playstation Style Controller

Author
Message
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 5th Jan 2014 20:58 Edited at: 27th Sep 2015 15:36
I just hooked up my generic PS style controller to see if I could use all of its buttons in DBPro.

Looks like everything works fine:

============
Left Stick Move:
============
LEFT/RIGHT=JOYSTICK X()
UP/DOWN=JOYSTICK Y()

============

Right Stick Move:
============
LEFT/RIGHT=JOYSTICK Z()
UP/DOWN=JOYSTICK TWIST Z()


============
D-Pad Buttons:
============
JOYSTICK HAT ANGLE (0)

=============================

All Other Buttons: JOYSTICK FIRE X(n)
=============================
0 = SQUARE BUTTON
1 = X BUTTON
2 = CIRCLE BUTTON
3 = TRIANGLE BUTTON
4 = L1 TRIGGER
5 = R1 TRIGGER
6 = L2 TRIGGER
7 = R2 TRIGGER
8 = SELECT BUTTON
9 = START BUTTON
10 = LEFT STICK PRESS
11 = RIGHT STICK PRESS
12 = MIDDLE (ANALOG) BUTTON


A newb-friendly code for reading input:



Login to post a reply

Server time is: 2026-07-06 16:50:15
Your offset time is: 2026-07-06 16:50:15