SetPressed release key/button timeout
Posted: Sat Sep 05, 2015 2:33 pm
Today the setPressed code in FreePIE just waits one script cycle until is releases a pressed key. This means that with the default FreePIE speed it will be held down for 16 ms (64hz clock speed). If you overclock FreePIE this could be as low as 1ms or even lower if you use the new micro second timer in 1.9. The game could then entirely miss that the key was pressed.
I'm thinking of changing this so that the setPressed code instead waits until a certain time has elapsed. I was thinking of setting this value to 16ms since that's the default with the old code.
Do you think that is a good value or should we wait a little longer? Some games render at 60hz and that mean they could miss the key press if we keep it pressed for 16ms (64hz)
I'm thinking of changing this so that the setPressed code instead waits until a certain time has elapsed. I was thinking of setting this value to 16ms since that's the default with the old code.
Do you think that is a good value or should we wait a little longer? Some games render at 60hz and that mean they could miss the key press if we keep it pressed for 16ms (64hz)