|
VirtualC64 v5.0 beta
Commodore 64 Emulator
|
Keyboard Public API. More...
#include <VirtualC64.h>
Public Member Functions | |
| void | press (C64Key key, double delay=0.0) const |
| Presses a key. | |
| void | release (C64Key key, double delay=0.0) const |
| Releases a key. | |
| bool | isPressed (C64Key key) const |
| Checks if a key is currently pressed. | |
| void | autoType (const string &text) |
| Uses the auto-typing daemon to type a string. | |
| void | abortAutoTyping () |
| Aborts any active auto-typing activity. | |
Keyboard Public API.
| void autoType | ( | const string & | text | ) |
Uses the auto-typing daemon to type a string.
| text | The text to type. |
| bool isPressed | ( | C64Key | key | ) | const |
Checks if a key is currently pressed.
| key | The key to check. |
| void press | ( | C64Key | key, |
| double | delay = 0.0 ) const |
Presses a key.
| key | The key to press. |
| delay | An optional delay in seconds. |
If no delay is specified, the function will immediately modify the C64's keyboard matrix. Otherwise, it will ask the event scheduler to modify the matrix with the specified delay.
| void release | ( | C64Key | key, |
| double | delay = 0.0 ) const |
Releases a key.
| key | The key to release. |
| delay | An optional delay in seconds. |
If no delay is specified, the function will immediately modify the C64's keyboard matrix. Otherwise, it will ask the event scheduler to modify the matrix with the specified delay.