WayneKeenan / picraftzero

Universal remote controls for robots with streaming video and VR HMD support.
https://www.thebubbleworks.com
MIT License
22 stars 4 forks source link

ios gamepad-controller: forward / backward reversed #60

Open thymjan opened 6 years ago

thymjan commented 6 years ago

I‘ve connected a steelseries wireless gamepad-controller to my iPad: After pressing the „A“-button it worked flawlessly! Only the direction for forward / backward is reversed. Is there an option to change the assignment for directions with ios-devices?

WayneKeenan commented 6 years ago

There is a global and user config file, it's not specific to iOS clients though.

This is the template https://github.com/WayneKeenan/picraftzero/blob/master/picraftzero/resources/config/picraftzero.cfg

Look at the 'joystick_0' section

It can be placed in /etc/picraftzero.cfg

WayneKeenan commented 6 years ago

Or ~/.picraftzero.cfg

WayneKeenan commented 6 years ago

You only need to insert the section you want to override

e.g. [joystick_0] invert_y_axis=yes

thymjan commented 6 years ago

Thanks for your help. Did as you told me. Now the Rock Candy controller with macos is inversed. The ios onscreen touch control also.

WayneKeenan commented 6 years ago

As I mentioned, it's global, not iOS or device specific, that's the way it is at the moment.

thymjan commented 6 years ago

Do you remember issue https://github.com/WayneKeenan/picraftzero/issues/47? I mentioned the same problem with macos. You wrote to always invert joypad y-axis with html5. So macos and ios doesn't have the same html5 behaviour? So the bug is in macos?

WayneKeenan commented 6 years ago

no, forgot all about that, what version are you using in regards to this issue? PyPi release or installed from Git ?

thymjan commented 6 years ago

I think I've did this: update to the latest repository

sudo pip3 uninstall picraftzero
sudo pip3 install git+https://github.com/WayneKeenan/picraftzero

.. some time has passed since then.