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?
Multiple keyboard support request
-
- One Eyed Hopeful
- Posts: 3
- Joined: Wed Mar 18, 2015 7:06 pm
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Multiple keyboard support request
Multiple keyboard work, but you cant tell which keyboard that triggered the input, you want to be able todo keyboards[0].getKey(...)?
-
- One Eyed Hopeful
- Posts: 3
- Joined: Wed Mar 18, 2015 7:06 pm
Re: Multiple keyboard support request
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.
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.
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Multiple keyboard support request
Hmm, cant get RawInput to work,
Tried this code, but the event does not trigger, anyone that have used RawInput?
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");
-
- One Eyed Hopeful
- Posts: 3
- Joined: Wed Mar 18, 2015 7:06 pm
Re: Multiple keyboard support request
Maybe this article can help http://www.codeproject.com/Articles/716 ... -selective
-
- Golden Eyed Wiseman! (or woman!)
- Posts: 1498
- Joined: Fri Jul 08, 2011 11:47 pm
Re: Multiple keyboard support request
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.
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.