|
| static void | input_key (KeySemanticType keynum, double value, double kabs, int repeat) |
| | Runs the input command.
|
| static void | input_clickZoom (double modifier) |
| | Handles zoom.
|
| static void | input_clickevent (SDL_Event *event) |
| | Handles a click event.
|
| static void | input_mouseMove (SDL_Event *event) |
| | Provides mouse X and Y coordinates for mouse flying.
|
| static void | input_joyaxis (const SDL_Keycode axis, const int value) |
| | Filters a joystick axis event.
|
| static void | input_joyevent (const int event, const SDL_Keycode button) |
| | Filters a joystick button event.
|
| static void | input_keyevent (const int event, SDL_Keycode key, const SDL_Keymod mod, const int repeat) |
| | Filters a keyboard event.
|
| static int | input_doubleClickTest (unsigned int *time, const void **last, const void *clicked) |
| void | input_setDefault (int wasd) |
| | Sets the default input keys.
|
| void | input_init (void) |
| | Initializes the input subsystem (does not set keys).
|
| void | input_exit (void) |
| | Exits the input system.
|
| void | input_enableAll (void) |
| | Enables all the keybinds.
|
| void | input_disableAll (void) |
| | Disables all the keybinds.
|
| void | input_toggleEnable (KeySemanticType key, int enable) |
| | Enables or disables a keybind.
|
| void | input_mouseShow (void) |
| | Shows the mouse.
|
| void | input_mouseHide (void) |
| | Hides the mouse.
|
| int | input_mouseIsShown (void) |
| | Gets whether or not the mouse is currently shown.
|
| SDL_Keycode | input_keyConv (const char *name) |
| | Gets the key id from its name.
|
| void | input_setKeybind (KeySemanticType keybind, KeybindType type, SDL_Keycode key, SDL_Keymod mod) |
| | Binds key of type type to action keybind.
|
| SDL_Keycode | input_getKeybind (KeySemanticType keybind, KeybindType *type, SDL_Keymod *mod) |
| | Gets the value of a keybind.
|
| void | input_getKeybindDisplay (KeySemanticType keybind, char *buf, int len) |
| | Gets the display name (translated and human-readable) of a keybind.
|
| const char * | input_modToText (SDL_Keymod mod) |
| | Gets the human readable version of mod.
|
| KeySemanticType | input_keyAlreadyBound (KeybindType type, SDL_Keycode key, SDL_Keymod mod) |
| | Checks to see if a key is already bound.
|
| const char * | input_getKeybindBrief (KeySemanticType keybind) |
| | Gets the brief descirption of the keybinding.
|
| const char * | input_getKeybindName (KeySemanticType keybind) |
| | Gets the name of the keybinding.
|
| const char * | input_getKeybindDescription (KeySemanticType keybind) |
| | Gets the description of the keybinding.
|
| SDL_Keymod | input_translateMod (SDL_Keymod mod) |
| | Translates SDL modifier to Naev modifier.
|
| void | input_update (double dt) |
| | Handles key repeating.
|
| static void | input_joyhatevent (const Uint8 value, const Uint8 hat) |
| | Filters a joystick hat event.
|
| int | input_clickPos (SDL_Event *event, double x, double y, double zoom, double minpr, double minr) |
| | Handles a click at a position in the current system.
|
| int | input_clickedJump (int jump, int autonav) |
| | Performs an appropriate action when a jump point is clicked.
|
| int | input_clickedSpob (int spob, int autonav, int priority) |
| | Performs an appropriate action when a spob is clicked.
|
| int | input_clickedAsteroid (int field, int asteroid) |
| | Performs an appropriate action when an asteroid is clicked.
|
| int | input_clickedPilot (unsigned int pilot, int autonav) |
| | Performs an appropriate action when a pilot is clicked.
|
| void | input_clicked (const void *clicked) |
| | Sets the last-clicked item, for double-click detection.
|
| int | input_isDoubleClick (const void *clicked) |
| | Checks whether a clicked item is the same as the last-clicked.
|
| void | input_handle (SDL_Event *event) |
| | Handles global input.
|
| KeySemanticType | input_keyFromBrief (const char *target) |
Handles all the keybindings and input.
Definition in file input.c.
| int input_clickPos |
( |
SDL_Event * | event, |
|
|
double | x, |
|
|
double | y, |
|
|
double | zoom, |
|
|
double | minpr, |
|
|
double | minr ) |
Handles a click at a position in the current system.
event The click event itself, used for button information.
x X coordinate within the system.
y Y coordinate within the system.
zoom Camera zoom (mostly for on-screen targeting).
minpr Minimum radius to assign to pilots.
minr Minimum radius to assign to spobs and jumps.
- Returns
- Whether the click was used to trigger an action.
Definition at line 1538 of file input.c.