Can We Add a Steering Wheel Support to UPBGE Games?

  • i making a racing game by using the jreo’s vehicle physics and something on my mind.
  • as we know steering wheels the best choice for drifting (and driving)

My question is that:
Can i add steering wheel support on my game?

  • I think it will be more fun when you add the steering support to the game

When you say steering-wheel support, do you mean actual input, such as a PlayStation wheel controller? Or are you referring to a logic mechanic that simulates a car wheel.

yea you can program steering wheel support. A steering wheel is just another type of joystick. Read the input values from the device and do something with them

1 Like

like logitech g29 or trustmaster t300
(I mean actual input)

Can you provide information on how to do this?

since they hard coded a specific list of controllers, theres a good chance anything other than a gamepad wont be detected. for some they reason someone thought it would be funny to force an xbox controller input mapping. pretty disappointed when i couldnt get my thrustmaster t1600.m’s to work.

Even if the game engine uses a hard-coded list of controllers (which is dumb, but I digress), you can easily add support for any kind of controller with a program like Joy2Key which will convert it to keyboard input :slight_smile:

I believe joystick inputs in UPBGE aren’t hardcoded. They have an external file that contains pre-written joystick values that can also be customized to fit other control inputs.

Found under: UPBGE\%VERSION%\datafiles\gamecontroller\gamecontrollerdb.txt.

https://upbge.org/#/documentation/docs/latest/manual/manual/python/python_game_engine.html#joysticks

We changed the old system where you have to configure each button (they worked different in each joypad) to the new SDL system where all the gamepad/wheels were mapped against a virtual Xbox 360 gamepad.

Additionally, this new system has hotpluggin and force feedback support.

This system is the current standard in the game industry (it is used in steam, for example).

The cons is the system is based in an almost hard coded list (you can modify that list) but that list currently has more than 700 game controllers plus all the new xinput controllers. https://github.com/gabomdq/SDL_GameControllerDB

To see whether the wheel controller that you have is working you only have to select the game controller logic sensor and test it. If the wheel controller is not supported a message will appear in the windows console.

Here you have more information about how to configure your own setup https://github.com/UPBGE/upbge/wiki/New-Game-controller-system

thanks sir, that’s work

1 Like