Using PS3 Controller simultaneously with GIMX

Discuss everything to do with GIMX here
Post Reply
Liuser
Posts: 10
Joined: Sat Apr 06, 2013 8:09 am

Using PS3 Controller simultaneously with GIMX

Post by Liuser »

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?
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Using PS3 Controller simultaneously with GIMX

Post by Matlo »

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.
GIMX creator
Liuser
Posts: 10
Joined: Sat Apr 06, 2013 8:09 am

Re: Using PS3 Controller simultaneously with GIMX

Post by Liuser »

Multiple controls can be bound to a same controller button/axis.
Can multiple controls be bound to multiple controllers? I want to use both keyboard and PS3 controller together.

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>
I am out for a few days for work, but just making sure I am on right track when I return home. :)
User avatar
Matlo
Posts: 5768
Joined: Wed Jul 06, 2011 7:01 am
Location: France
Contact:

Re: Using PS3 Controller simultaneously with GIMX

Post by Matlo »

Just don't edit your config with a text editor, and it should work fine.
GIMX creator
Post Reply