Handles keyboard and mouse input.
More...
#include <input.h>
Handles keyboard and mouse input.
- Todo:
- Rewrite it!
Definition at line 40 of file input.h.
Initialise the input system.
Definition at line 46 of file input.cc.
Free resources occupied by the input system.
Definition at line 58 of file input.cc.
Update the input state.
Definition at line 63 of file input.cc.
bool input::is_pushed |
( |
SDLKey |
key | ) |
|
|
static |
Returns whether a key is currently pushed or not.
- Parameters
-
- Returns
- true if key is currently pushed, false otherwise.
Definition at line 68 of file input.cc.
bool input::has_been_pushed |
( |
SDLKey |
key | ) |
|
|
static |
Returns whether a key has been pushed since last function call, false otherwise.
- Parameters
-
- Returns
- true if the key has been pushed since last call, false otherwise.
Definition at line 76 of file input.cc.
Returns the code of the next key on the input queue.
- Returns
- Code of the next key that has been pushed.
Definition at line 89 of file input.cc.
s_int32 input::get_next_unicode |
( |
| ) |
|
|
static |
Returns the next unicode on the input queue.
- Returns
- Unicode of the next key that has been pushed.
Definition at line 107 of file input.cc.
void input::set_key_repeat |
( |
int |
delay = SDL_DEFAULT_REPEAT_DELAY , |
|
|
int |
interval = SDL_DEFAULT_REPEAT_INTERVAL |
|
) |
| |
|
static |
Sets whether the key repeat is active or not.
- Parameters
-
delay | delay (in ms) before repetition. |
interval | interval (in ms) between repetitions. |
Definition at line 84 of file input.cc.
void input::clear_keys_queue |
( |
| ) |
|
|
static |
Totally clears the key queue.
Definition at line 128 of file input.cc.
The documentation for this class was generated from the following files: