View Single Post
Posts: 72 | Thanked: 2 times | Joined on Sep 2010
#6
Originally Posted by jflatt View Post
It looks like the dualshock already emulates a mouse and keyboard. The left joystick looks like a real mouse, but it's seen as mouse 0 also, I don't know if there's a way to distinguish the dualshock from the touchscreen. The right stick looks like mouse button presses. I'll probably have a look at a hal fdi policy to remap things. All the other buttons, including d-pad should already work fine as keyboard keys. Here's the keycodes:
Code:
up - 273
down - 274
right - 275
left - 276
select - 32
start - 271
ps button - 100
triangle - 115
x - 122
o - 120
square - 97
L1 - 119
L2 - 113
R1 - 101
R2 - 114
thank u du

but .. what should I do with these code ? << noob