I understand most people use GIMX to use a mouse and keyboard to play FPS, but I would like to be able to still use a PS3 controller simultaneously being able to use a keyboard and mouse. The main way where I can think of doing this is
- Attach PS3 controller to USB and read from /dev/eventX
- Inject read events back into /dev/input to mimic keyboard and mouse events.
Are there better ways to do this where I can still use GIMX and still use the PS3 controller at the same time?
Using PS3 Controller simultaneously with GIMX
Re: Using PS3 Controller simultaneously with GIMX
Did you already try gimx-config?
It can be used to bind any control from any joystick/keyboard/mouse to any controller button/axis.
Multiple controls can be bound to a same controller button/axis.
It can be used to bind any control from any joystick/keyboard/mouse to any controller button/axis.
Multiple controls can be bound to a same controller button/axis.
GIMX creator
Re: Using PS3 Controller simultaneously with GIMX
Can multiple controls be bound to multiple controllers? I want to use both keyboard and PS3 controller together.Multiple controls can be bound to a same controller button/axis.
So to make sure I understand correctly, this will be my layout:
Both my keyboard and PS3 controller will be connected to my Linux system via USB.
I press "t" on my keyboard and it is mapped to "x" button.
I press "x" on my PS3 controller and it's still mapped to the same "x" button. Will it look like the bottom below? I want both to do the same thing.
Code: Select all
<button id="cross" label="Flashlight">
<device type="keyboard" id="0" name=""/>
<event type="button" id="t"/>
</button>
Code: Select all
<button id="cross" label="Flashlight">
<device type="joystick" id="0" name=""/>
<event type="button" id="cross"/>
</button>
Re: Using PS3 Controller simultaneously with GIMX
Just don't edit your config with a text editor, and it should work fine.
GIMX creator