So if you are using QJ Bullet demo with one of your controllers, can you shoot? Because that is the default code there, and i would really like to know if it even works on controller, and if it does - what key is used to fire?
never tried a controller on the pc though, only have PS4, but I have to see if it works.
but I wonder why the gamepad isn't accurate which might cause it?
for example, this one is for PS4 mapper (indentifier keys)
JavaScript:
Gamepad_PS4 = {
0: "PS4_PS", // 0|100
1: "PS4_SHARE", // 0|100
2: "PS4_OPTIONS", // 0|100
3: "PS4_R1", // 0 ~ 100
4: "PS4_R2", // 0 ~ 100
5: "PS4_R3", // 0|100 => right stick (click)
6: "PS4_L1", // 0 ~ 100
7: "PS4_L2", // 0 ~ 100
8: "PS4_L3", // 0|100 => left stick (click)
9: "PS4_RX", // -100 ~ 100 => right stick
10: "PS4_RY", // -100 ~ 100 => right stick
11: "PS4_LX", // -100 ~ 100 => left stick
12: "PS4_LY", // -100 ~ 100 => left stick
13: "PS4_UP", // 0|100
14: "PS4_DOWN", // 0|100
15: "PS4_LEFT", // 0|100
16: "PS4_RIGHT", // 0|100
17: "PS4_TRIANGLE", // 0|100
18: "PS4_CIRCLE", // 0|100
19: "PS4_CROSS", // 0|100
20: "PS4_SQUARE", // 0|100
27: "PS4_TOUCH", // 0|100
// "PS4_TOUCHX" -100 ~ 100
// "PS4_TOUCHY" -100 ~ 100
};
but I did ps3, xb360 and xb1 but, 12,13,14,15 and others match which can be
inside a gamepad, which I try to make for controllers.
see which one is the same, configure those as base, but rest can be used otherwise.
so I wonder how they come to 12 = dPad is UP which is none of the 4 I checked.
need to check the PS5, but you should play around with controller if they work.
just the keymapper and gamepad, see what button you want to use
and match them up I think and it should theoretically work.