How to use more than one keyboard, one for each player?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
SouL
Prole
Posts: 14
Joined: Mon Jun 30, 2014 1:33 pm

How to use more than one keyboard, one for each player?

Post by SouL »

I would like to use a different keyboard for each player but I don't know where to start looking.

I use GNU/Linux but I would like to know if something changes between different Operating Systems.

Thank you very much, any help is appreciated! :)
User avatar
miko
Party member
Posts: 410
Joined: Fri Nov 26, 2010 2:25 pm
Location: PL

Re: How to use more than one keyboard, one for each player?

Post by miko »

SouL wrote:I would like to use a different keyboard for each player but I don't know where to start looking.

I use GNU/Linux but I would like to know if something changes between different Operating Systems.

Thank you very much, any help is appreciated! :)
Under linux you could read /dev/input/event? (for each input device, i.e. keyboard) and decode it for yourself . That would be low-level and not portable.
My lovely code lives at GitHub: http://github.com/miko/Love2d-samples
User avatar
SouL
Prole
Posts: 14
Joined: Mon Jun 30, 2014 1:33 pm

Re: How to use more than one keyboard, one for each player?

Post by SouL »

miko wrote:
SouL wrote:I would like to use a different keyboard for each player but I don't know where to start looking.

I use GNU/Linux but I would like to know if something changes between different Operating Systems.

Thank you very much, any help is appreciated! :)
Under linux you could read /dev/input/event? (for each input device, i.e. keyboard) and decode it for yourself . That would be low-level and not portable.
Thank you, I'll keep investigating ^^
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests