Changeset f9edc7b in mainline
- Timestamp:
- 2019-05-18T06:42:01Z (6 years ago)
- Children:
- a8171b86
- Parents:
- 95f603c
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-05-16 09:46:12)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-05-18 06:42:01)
- Location:
- uspace/srv/hid/input
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/layout.h
r95f603c rf9edc7b 54 54 void (*destroy)(layout_t *); 55 55 wchar_t (*parse_ev)(layout_t *, kbd_event_t *); 56 const char *(*get_name)(void); 56 57 } layout_ops_t; 57 58 -
uspace/srv/hid/input/layout/ar.c
r95f603c rf9edc7b 49 49 static void ar_destroy(layout_t *); 50 50 static wchar_t ar_parse_ev(layout_t *, kbd_event_t *ev); 51 static const char *ar_name(void); 51 52 52 53 static const layout_ops_t layout_intern = { 53 54 .create = ar_create, 54 55 .destroy = ar_destroy, 55 .parse_ev = ar_parse_ev 56 .parse_ev = ar_parse_ev, 57 .get_name = ar_name 56 58 }; 57 59 … … 66 68 layout_ops_t layout_active = layout_intern; 67 69 #endif 70 71 static const char *ar_name(void) 72 { 73 return "ar"; 74 } 68 75 69 76 static wchar_t map_not_shifted[] = { -
uspace/srv/hid/input/layout/cz.c
r95f603c rf9edc7b 50 50 static void cz_destroy(layout_t *); 51 51 static wchar_t cz_parse_ev(layout_t *, kbd_event_t *ev); 52 static const char *cz_name(void); 52 53 53 54 static const layout_ops_t layout_intern = { 54 55 .create = cz_create, 55 56 .destroy = cz_destroy, 56 .parse_ev = cz_parse_ev 57 .parse_ev = cz_parse_ev, 58 .get_name = cz_name 57 59 }; 58 60 … … 67 69 layout_ops_t layout_active = layout_intern; 68 70 #endif 71 72 static const char *cz_name(void) 73 { 74 return "cz"; 75 } 69 76 70 77 enum m_state { -
uspace/srv/hid/input/layout/us_dvorak.c
r95f603c rf9edc7b 48 48 static void us_dvorak_destroy(layout_t *); 49 49 static wchar_t us_dvorak_parse_ev(layout_t *, kbd_event_t *ev); 50 static const char *us_dvorak_name(void); 50 51 51 52 static const layout_ops_t layout_intern = { 52 53 .create = us_dvorak_create, 53 54 .destroy = us_dvorak_destroy, 54 .parse_ev = us_dvorak_parse_ev 55 .parse_ev = us_dvorak_parse_ev, 56 .get_name = us_dvorak_name 55 57 }; 56 58 … … 65 67 layout_ops_t layout_active = layout_intern; 66 68 #endif 69 70 static const char *us_dvorak_name(void) 71 { 72 return "us_dvorak"; 73 } 67 74 68 75 static wchar_t map_lcase[] = { -
uspace/srv/hid/input/layout/us_qwerty.c
r95f603c rf9edc7b 48 48 static void us_qwerty_destroy(layout_t *); 49 49 static wchar_t us_qwerty_parse_ev(layout_t *, kbd_event_t *ev); 50 static const char *us_qwerty_name(void); 50 51 51 52 static const layout_ops_t layout_intern = { 52 53 .create = us_qwerty_create, 53 54 .destroy = us_qwerty_destroy, 54 .parse_ev = us_qwerty_parse_ev 55 .parse_ev = us_qwerty_parse_ev, 56 .get_name = us_qwerty_name 55 57 }; 56 58 … … 65 67 layout_ops_t layout_active = layout_intern; 66 68 #endif 69 70 71 static const char *us_qwerty_name(void) 72 { 73 return "us_qwerty"; 74 } 67 75 68 76 static wchar_t map_lcase[] = {
Note:
See TracChangeset
for help on using the changeset viewer.