diff options
Diffstat (limited to 'src/ui/keys.c')
-rw-r--r-- | src/ui/keys.c | 12 |
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 | ||
29 | iDeclareType(Keys) | 29 | iDeclareType(Keys) |
30 | iDeclareType(Binding) | ||
31 | |||
32 | struct Impl_Binding { | ||
33 | int key; | ||
34 | int mods; | ||
35 | iString command; | ||
36 | iString label; | ||
37 | }; | ||
38 | 30 | ||
39 | static int cmp_Binding_(const void *a, const void *b) { | 31 | static 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 | |||
147 | const iBinding *findCommand_Keys(const char *command) { | ||
148 | return findCommand_Keys_(&keys_, command); | ||
149 | } | ||