filename | src/hotkeys.h |
changeset | 1015:ad448bedc48a |
next | 1072:d82e04e6d497 |
author | nkeynes |
date | Wed Jun 03 10:29:16 2009 +0000 (14 years ago) |
permissions | -rw-r--r-- |
last change | Allow multiple input hooks to be registered for the same key - useful to allow eg binding the same hotkey for run/stop so that it works as a toggle. |
file | annotate | diff | log | raw |
nkeynes@1015 | 1 | /** |
nkeynes@1015 | 2 | * $Id: $ |
nkeynes@1015 | 3 | * |
nkeynes@1015 | 4 | * Handles hotkeys for pause/continue, save states, quit, etc |
nkeynes@1015 | 5 | * |
nkeynes@1015 | 6 | * Copyright (c) 2009 wahrhaft. |
nkeynes@1015 | 7 | * |
nkeynes@1015 | 8 | * This program is free software; you can redistribute it and/or modify |
nkeynes@1015 | 9 | * it under the terms of the GNU General Public License as published by |
nkeynes@1015 | 10 | * the Free Software Foundation; either version 2 of the License, or |
nkeynes@1015 | 11 | * (at your option) any later version. |
nkeynes@1015 | 12 | * |
nkeynes@1015 | 13 | * This program is distributed in the hope that it will be useful, |
nkeynes@1015 | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
nkeynes@1015 | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
nkeynes@1015 | 16 | * GNU General Public License for more details. |
nkeynes@1015 | 17 | */ |
nkeynes@1015 | 18 | |
nkeynes@1015 | 19 | #ifndef lxdream_hotkeys_H |
nkeynes@1015 | 20 | #define lxdream_hotkeys_H |
nkeynes@1015 | 21 | |
nkeynes@1015 | 22 | #include "config.h" |
nkeynes@1015 | 23 | |
nkeynes@1015 | 24 | #ifdef __cplusplus |
nkeynes@1015 | 25 | extern "C" { |
nkeynes@1015 | 26 | #endif |
nkeynes@1015 | 27 | |
nkeynes@1015 | 28 | void hotkeys_init(); |
nkeynes@1015 | 29 | lxdream_config_entry_t hotkeys_get_config(); |
nkeynes@1015 | 30 | void hotkeys_register_keys(); |
nkeynes@1015 | 31 | void hotkeys_unregister_keys(); |
nkeynes@1015 | 32 | |
nkeynes@1015 | 33 | #ifdef __cplusplus |
nkeynes@1015 | 34 | } |
nkeynes@1015 | 35 | #endif |
nkeynes@1015 | 36 | |
nkeynes@1015 | 37 | #endif |
.