I added a few lines to the PhysicsStressTest sample to be able to control the camera with a game controller and made a few for loops
to test what value each Button/Axis had, as I noticed they didn’t have the same as those I could see in jstest-gtk (github.com/Grumbel/jstest-gtk)
(Which isn’t the problem). The controller I used is a sixaxis PS3 controller which works just fine in other games and as I mentionned works with jstest.
I am testing for input with:
GetSubsystem<Input>()->GetJoystickByIndex(0)->GetButtonDown(i);
GetSubsystem<Input>()->GetJoystickByIndex(0)->GetAxisPosition(i);
My problem now; when I wanted to use the (R2) and (L2) triggers to make the camera move up and down while controlling the speed at which it did,
I found out two things:
? Those two don’t have a ‘Button’ in Urho3D.
? Their ‘AxisPosition’ values either are 1 or 0.
I understand why the axes of most buttons would be ignored by the game engine, but surely it isn’t normal that those two work that way currently?
Or could I be doing something wrong? I observed this with the yaourt urho3d and urho3d-git builds (Linux Manjaro).