picraftzero icon indicating copy to clipboard operation
picraftzero copied to clipboard

ios gamepad-controller: forward / backward reversed

Open thymjan opened this issue 7 years ago • 8 comments

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?

thymjan avatar May 19 '18 13:05 thymjan

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 avatar May 19 '18 13:05 WayneKeenan

Or ~/.picraftzero.cfg

WayneKeenan avatar May 19 '18 13:05 WayneKeenan

You only need to insert the section you want to override

e.g. [joystick_0] invert_y_axis=yes

WayneKeenan avatar May 19 '18 13:05 WayneKeenan

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

thymjan avatar May 19 '18 17:05 thymjan

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

WayneKeenan avatar May 19 '18 17:05 WayneKeenan

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?

thymjan avatar May 19 '18 18:05 thymjan

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

WayneKeenan avatar May 20 '18 09:05 WayneKeenan

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.

thymjan avatar May 20 '18 11:05 thymjan