View Full Version : Input debouncing
qwer1304
September 8th, 2003, 11:58 PM
Hi,
I'm using Ira with a remote that sends every button push a variable number of times, but more of once (like 2,3,4). How can that be debounced in Girder?
Thx
Mark F
September 9th, 2003, 01:29 AM
After you have learned the event string to a command, set the event string's "Antirepeat wait time (ms)" to the debounce time. (~200 is a good starting number)
miked
September 9th, 2003, 10:28 PM
As an added note, this is generally useful to prevent Girder detecting multiple repetitions of a command -- I have a button on my remote to trigger "full screen/non full screen" in Internet Explorer, and until I set the anti-repeat, I had to gingerly press the button to get the desired effect -- otherwise the screen would go full screen and then back to normal!
rgreen
October 18th, 2003, 03:13 AM
i've got this type of problem with "RadLight". an otherwise escellent program, it doesn't allow me to use any toggle button via girder. for example linking a button press to the pause command (space) causes the program to pause and unpause very briefly (same problem with fullscreen/window). setting thre antirepeat time to 100, 200, 500 and 1000 has not helped. i have no idea what's going wrong.
miked
October 19th, 2003, 11:00 PM
Hmmm . . . that is odd. Can you provide more details on the command that Girder is issuing (i.e., specific window targeting, etc.)?
rgreen
October 20th, 2003, 12:45 PM
well, it's actually kind of strange. 2 commands are sent most of the time i press remote buttons. i thought this was just when pressing the pause/unpause toggle (mapped to keyboard sentence "c") which causes media to jerk and "pause" to flash in the top left corner, where it would stay if it remained paused. this also happened with the fullscreen/window toggle, but i later mapped this to a mouse double-left click which did the job ok. i took this as something i had to accept...
however - i have one key for launching the application (RadLight 3.03), which also checks to see if it is already open, puts it in the foreground if it isn't, enables the salient command group, disables other command groups, etc... and when i press this key, it launches 2 copies of the program. surely, if this is not a function targetted on the program (as the pause/unpause window/fullscreen toggles are), but the program being launched via girder, it is a fault of girder and not the program.
i'm not sure if i've explained this correctly. basically all the "dodgy" commands that are doubled up are basic key-presses (i.e. sentence "c") targetted to the executable (RadLight.exe). I have tried a range of antirepeat values (0,1,10,50,100,200,300,500...2000), all to no avail.
miked
October 20th, 2003, 07:14 PM
It appears for some strange reason that Girder is sending two letters for some people. THe post I just responded to has this same problem . . . Ron, any ideas?
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.