Page 1 of 1

Multiple keyboard support request

Posted: Wed Mar 18, 2015 7:21 pm
by GoranNSW
Because this IMHO is very simmilar to this post http://www.mtbs3d.com/phpBB/viewtopic.php?f=139&t=19848 maybe support for multiple mouse and keyboards can be done together?

Does someone can explain to me how to use GetRawInputData with FreePIE?

Re: Multiple keyboard support request

Posted: Fri Mar 20, 2015 2:40 am
by CyberVillain
Multiple keyboard work, but you cant tell which keyboard that triggered the input, you want to be able todo keyboards[0].getKey(...)?

Re: Multiple keyboard support request

Posted: Sun Mar 22, 2015 3:47 pm
by GoranNSW
Exactly, I want to get input from keyboard[0] and send it to Vjoy[0] and keyboard[1] to Vjoy[1].
Now I am using GlovePIE with PPjoy with parameters like

ppjoy1.button1 = keyboard1.Space
...
ppjoy2.button1 = keyboard2.Space

but in windows 8 you have to set driver signing off to be able to use PPjoy, and I think that's not safe and it is a problem for some users.

It's kind of "in the middle" situation where GlovePIE doesn't have support for Vjoy and FreePIE doesn't distinguishes two keyboards.

Re: Multiple keyboard support request

Posted: Mon Mar 23, 2015 3:59 am
by CyberVillain
Hmm, cant get RawInput to work,
Tried this code, but the event does not trigger, anyone that have used RawInput?

Code: Select all

SlimDX.RawInput.Device.RegisterDevice(UsagePage.Generic, UsageId.Keyboard, DeviceFlags.None);
SlimDX.RawInput.Device.KeyboardInput += (s, e) => Debug.WriteLine("Triggered");

Re: Multiple keyboard support request

Posted: Wed Apr 01, 2015 9:17 am
by GoranNSW

Re: Multiple keyboard support request

Posted: Wed Apr 01, 2015 8:08 pm
by WiredEarp
I've used it before... in fact I think its in the P5 glove driver code I uploaded here. Thats C++ raw API stuff though, and it looks more like you are using some sort of raw input class?

You could try to check in the code I uploaded to see how I used GetRawInput to read the glove though, as I'd say its pretty similar.