Hi everyone !
I was looking for a GlovePie alternative, since it seems to be abandoned and that it is completely unstable on my PC.
I just tested FreePie and I have to admit that wow, it is cool !
I am trying to map my WiiMotes to it,
I know there is a code snippet on the wiki for that,
but I have a problem.
I don't find function to press key at a regular rate.
It is always to fast, or it just add one single character at continuous pressure (like the wiki code snippet) instead of several, just like when we press a key on a regular keyboard.
The consequence is that I can't use these in games where sometimes a continuous pressure is required, because it either spam the key so hard that the game lag, or because it is just one tiny key pressure length.
How to have Regular key press rate at continous pressure on keyboard key?
Thanks for your advice !
Regular key press rate at continous pressure on keyboard key
-
- One Eyed Hopeful
- Posts: 3
- Joined: Fri Feb 05, 2016 8:55 am
-
- Cross Eyed!
- Posts: 192
- Joined: Fri Jul 04, 2014 1:43 am
Re: Regular key press rate at continous pressure on keyboard
Code: Select all
keyboard.setKey(Key.C,wiimote[0].buttons.button_down(WiimoteButtons.Two))
-
- One Eyed Hopeful
- Posts: 3
- Joined: Fri Feb 05, 2016 8:55 am
Re: Regular key press rate at continous pressure on keyboard
@konstantin_lozev
Thanks for the help !
No it doesn't work either, it add a looooooot of C even with a short pressure.
@all
I just found these scripts: Freepie Wiimote-Nunchuk for Vjoy.
I think it is an even more elegant solutions that mapping the 4 wiimotes to all touch of the keyboard.
I didn't understand the pinciple behind Vjoy but it totally make sense now, it is great that FreePie can talk with it.
-----
Despite the fact I found a nicer solution for my particular thing, I'm still curious about how we could satisfy the original feature request. I'm pretty sure it can be useful if some circumstances (sending too many keyboard touch signal make certain apps crach).
Thanks for the help !
No it doesn't work either, it add a looooooot of C even with a short pressure.
@all
I just found these scripts: Freepie Wiimote-Nunchuk for Vjoy.
I think it is an even more elegant solutions that mapping the 4 wiimotes to all touch of the keyboard.
I didn't understand the pinciple behind Vjoy but it totally make sense now, it is great that FreePie can talk with it.
-----
Despite the fact I found a nicer solution for my particular thing, I'm still curious about how we could satisfy the original feature request. I'm pretty sure it can be useful if some circumstances (sending too many keyboard touch signal make certain apps crach).
-
- Cross Eyed!
- Posts: 192
- Joined: Fri Jul 04, 2014 1:43 am
Re: Regular key press rate at continous pressure on keyboard
Strange
works for you but
does not?
They are equivalent for FreePIE, AFAIK...
Code: Select all
vJoy[n+1].setButton(vjoy_button, wiimote[n].buttons.button_down(wiimote_button))
Code: Select all
keyboard.setKey(Key.C,wiimote[0].buttons.button_down(WiimoteButtons.Two))
They are equivalent for FreePIE, AFAIK...
-
- One Eyed Hopeful
- Posts: 3
- Joined: Fri Feb 05, 2016 8:55 am
Re: Regular key press rate at continous pressure on keyboard
Yep, I guess that vJoy as some internal ways to deal with such problems.
As long as the destinations software can recognize joystick input, it is all good. If not, then it is a problem.
As long as the destinations software can recognize joystick input, it is all good. If not, then it is a problem.
-
- One Eyed Hopeful
- Posts: 47
- Joined: Thu Oct 03, 2013 7:10 am
Re: Regular key press rate at continous pressure on keyboard
not exactly same thing, each time you do setkeydown = setkey(key.c, true), there is an action of keypress, so its the reason lot of C are generated. For vjoy it is just a state and not an action press.konstantin_lozev wrote:Strange
does not?Code: Select all
keyboard.setKey(Key.C,wiimote[0].buttons.button_down(WiimoteButtons.Two))
They are equivalent for FreePIE, AFAIK...
maybe this code is better
Code: Select all
winb = wiimote[0].buttons.button_down(WiimoteButtons.Two)
if winb != Keyboard.getKeydown(Key.C):
keyboard.setKey(Key.C, winb)
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Regular key press rate at continous pressure on keyboard
If you guys come up with anything I can help you to integrate it with FreePIE. (If there is something wrong with how emulating keys works i mean).