PiBoSo Official Forum

General => Custom hardware => Topic started by: poumpouny on June 13, 2017, 02:18:36 PM

Title: How to control free rider look with joystick ?
Post by: poumpouny on June 13, 2017, 02:18:36 PM
I'm trying lot of thing with my smartphone gyroscope and the software monect (who transform your phone into a game pad). So my question is how i can assign my joystick axis to the freelook, i know there is an option "joystick" in free look but i don't know it is assigned to what joystick and and i don't see any option to assign it!

Thx
Title: Re: How to control free rider look with joystick ?
Post by: PiBoSo on June 13, 2017, 03:17:31 PM

It is possible to edit gpbikes.ini to add the following lines under the "core" section:

freelook_joystick_name = XBOX 360 For Windows (Controller)
freelook_joystick_center = 0
freelook_joystick_range = 32767


These values set the range from -32767 to 32767.
For a different range, for example from 0 to 255, use:

freelook_joystick_center = 127
freelook_joystick_range = 127
Title: Re: How to control free rider look with joystick ?
Post by: HornetMaX on June 13, 2017, 06:41:08 PM
Sticky ! (or better, in the gpbikes.ini post)
Title: Re: How to control free rider look with joystick ?
Post by: PiBoSo on June 13, 2017, 08:40:50 PM
Quote from: HornetMaX on June 13, 2017, 06:41:08 PM
Sticky ! (or better, in the gpbikes.ini post)

Done.