Key presses, waitKeyDown
Hi
I have a few questions regarding registration of key presses. I noticed that the frequency of registration of key presses using 'waitKeyDown' function depends on the Windows' Keyboard Property, e.g. if you set the 'Repeat Rate' to 'Slow', this function checks the keyboard slower than 'Fast'. I used the following code to test this. Code:
Very many thanks. Greetings :-) Amir |
If you want capture all key presses, then simply register a callback for viz.KEYDOWN_EVENT and viz.KEYUP_EVENT.
You can also use the viz.key.isDown() function to manually query whether a specific key is down. Set the immediate parameter to True to query the physical keyboard, instead of using the last known value. |
All times are GMT -7. The time now is 09:07 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC