diff options
| author | Franklin Wei <frankhwei536@gmail.com> | 2015-02-18 16:09:10 -0500 |
|---|---|---|
| committer | Franklin Wei <frankhwei536@gmail.com> | 2015-02-18 16:09:10 -0500 |
| commit | d86f31a5f428a3937b56d34e026a88ed737eb7bf (patch) | |
| tree | e86d34a36e92cd14b7b8c54a9cfe31f21786f451 /apps/plugin.c | |
| parent | 3fbc39f482df596c832cf4ffcf3956a20e71cb38 (diff) | |
| download | kappa-d86f31a5f428a3937b56d34e026a88ed737eb7bf.zip kappa-d86f31a5f428a3937b56d34e026a88ed737eb7bf.tar.gz kappa-d86f31a5f428a3937b56d34e026a88ed737eb7bf.tar.bz2 kappa-d86f31a5f428a3937b56d34e026a88ed737eb7bf.tar.xz | |
support modifier keys
Diffstat (limited to 'apps/plugin.c')
| -rw-r--r-- | apps/plugin.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index fcb659d..cdca4c5 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -28,6 +28,11 @@ static int button_get(void) return ps2kbd_button_get(); } +static int modifier_get(void) +{ + return ps2kbd_modifier_get(); +} + static const struct plugin_api kappa_api = { &plugin_clear, &plugin_hline, @@ -47,7 +52,8 @@ static const struct plugin_api kappa_api = { &gfx_fillcircle, &gfx_update, &gfx_putsxy, - &button_get + &button_get, + &modifier_get, }; void plugin_load(enum plugin_status (*plugin)(const struct plugin_api*)) |