summaryrefslogtreecommitdiff
path: root/src/ui/keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/keys.c')
-rw-r--r--src/ui/keys.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/ui/keys.c b/src/ui/keys.c
index 4d52b0a4..85304ef7 100644
--- a/src/ui/keys.c
+++ b/src/ui/keys.c
@@ -27,14 +27,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
27#include <the_Foundation/sortedarray.h> 27#include <the_Foundation/sortedarray.h>
28 28
29iDeclareType(Keys) 29iDeclareType(Keys)
30iDeclareType(Binding)
31
32struct Impl_Binding {
33 int key;
34 int mods;
35 iString command;
36 iString label;
37};
38 30
39static int cmp_Binding_(const void *a, const void *b) { 31static int cmp_Binding_(const void *a, const void *b) {
40 const iBinding *d = a, *other = b; 32 const iBinding *d = a, *other = b;
@@ -151,3 +143,7 @@ iBool processEvent_Keys(const SDL_Event *ev) {
151 } 143 }
152 return iFalse; 144 return iFalse;
153} 145}
146
147const iBinding *findCommand_Keys(const char *command) {
148 return findCommand_Keys_(&keys_, command);
149}