First post, by Wild-E
There seems to be something odd about the joystick configuration.
DOSBox detects the controller (8bitdo Pro2) correctly. The problem is I can not bind the D-pad to an axis; or, more specifically, I can. The mapper detects it. It binds it. But games do not react to it.
Sadly, most games do not have any joystick settings besides basic calibration - and I should be able to emulate 2-axis joystick and just bind anything to it...???
Games will only detect (the first two axis) if I bind one of the real analog sticks to it - however, playing games with essentially digital inputs is very awkward with an analog stick.
I.e. this works:
$ grep jaxis mapper-0.74-3.mapjaxis_0_1-jaxis_0_1+jaxis_0_0- "stick_0 axis 0 0"jaxis_0_0+ "stick_0 axis 0 1"jaxis_0_2-jaxis_0_2+jaxis_0_3-jaxis_0_3+jaxis_1_0-jaxis_1_0+jaxis_1_1-jaxis_1_1+
But this doesn't:
$ grep jaxis mapper-0.74-3.mapjaxis_0_1-jaxis_0_1+jaxis_0_0- "stick_0 hat 0 8"jaxis_0_0+ "stick_0 hat 0 2"jaxis_0_2-jaxis_0_2+jaxis_0_3-jaxis_0_3+jaxis_1_0-jaxis_1_0+jaxis_1_1-jaxis_1_1+
(It's a simple game with only left<->right input possible in this case).
All this is a bit surprising since vast majority of games (well, at least those I have any interest in) don't care about analog inputs at all. But I can not use a non-analog input on a modern controller in DosBOX!
This is on Linux (Arch). The D-Pad is actually reported as an analog axis (6 and 7) with +-32767 (1 bit) values.
$ jstest /dev/input/js0Driver version is 2.1.0.Joystick (8BitDo Pro 2) has 8 axes (X, Y, Z, Rz, Gas, Brake, Hat0X, Hat0Y)and 16 buttons (BtnA, BtnB, BtnC, BtnX, BtnY, BtnZ, BtnTL, BtnTR, BtnTL2, BtnTR2, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR, ?).Testing ... (interrupt to exit)Axes: 0: 0 1: 0 2: 0 3: 0 4:-32767 5:-32767 6: 0 7: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off 12:off 13:off 14:off 15:off
The game does have a simple calibration in the beginning. Thinking, maybe it trips on itself, I even tried to bind both a stick and the D-pad to axis 0, but no (only the analog stick works).
Any ideas? Do I need an unofficial patch for DosBOX?