Badges
Games (6)
Mystery Mansion
Mystery Mansion 64bit Linux
DOTR
Amazing Box Puzzles
Unravel
Balloon Pop
Examples (9)
Count Down timer bar
AI mp_potential_step Example
Rotation tutorial
Create a Collapse game tutorial
Drag and Drop
Create a simple Select Level screen
Select Level screen Update
Mithe
Tetris for Enigma
164 guests

Connecting gaming device
Posted on 2023-06-22 10:24:02Enigma has functions for connecting other input devices like a gamepad, joypad or joystick. This is dependent on the platform u are using.
On Linux, this is accomplished by using the joystick functions to map the joystick axes and buttons.
Using my PS3 controller i was able map the left stick to move my character in the left, right, up and down direction.
The code ascertains what type of device is connected first. Then it reveals the name and the amount of buttons there are. With trial and error, one can ascertain for the buttons and map accordingly.
As such you can add another object with the same code to get that a player experience of your game.
Log in to post comments.
No comments have been posted, yet.