Changeset cb9313e in mainline
- Timestamp:
- 2019-05-12T15:02:29Z (6 years ago)
- Children:
- 3e1bc35
- Parents:
- 1e8b633
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-05-12 05:41:53)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-05-12 15:02:29)
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
HelenOS.config
r1e8b633 rcb9313e 497 497 ! [(CONFIG_HID_OUT=generic|CONFIG_HID_OUT=serial)&MACHINE=msim] CONFIG_MSIM_PRN (y/n) 498 498 499 % Default Keyboard Layout 500 @ "ar" Arabic 501 @ "cz" Czech 502 @ "us_dvorak" English US (DVORAK) 503 @ "us_qwerty" English US 504 ! [CONFIG_PC_KBD=y|CONFIG_AT_KBD=y|CONFIG_MSIM_KBD=y] CONFIG_KB_LAYOUT (choice) 505 499 506 % Support for VIA CUDA controller 500 507 ! [CONFIG_HID_IN=generic&PLATFORM=ppc32] CONFIG_VIA_CUDA (y/n) -
defaults/amd64/Makefile.config
r1e8b633 rcb9313e 53 53 CONFIG_PC_KBD = y 54 54 55 # Default keyboard layout 56 CONFIG_KB_LAYOUT = us_qwerty 57 55 58 # EGA support 56 59 CONFIG_EGA = y -
defaults/arm32/Makefile.config
r1e8b633 rcb9313e 38 38 CONFIG_HID_OUT = generic 39 39 40 # Default keyboard layout 41 CONFIG_KB_LAYOUT = us_qwerty 42 40 43 # Dynamic linking support 41 44 CONFIG_RTLD = y -
defaults/arm64/Makefile.config
r1e8b633 rcb9313e 47 47 CONFIG_HID_OUT = generic 48 48 49 # Default keyboard layout 50 CONFIG_KB_LAYOUT = us_qwerty 51 49 52 # Optimization level 50 53 OPTIMIZATION = 3 -
defaults/ia64/Makefile.config
r1e8b633 rcb9313e 50 50 CONFIG_HID_OUT = generic 51 51 52 # Default keyboard layout 53 CONFIG_KB_LAYOUT = us_qwerty 54 52 55 # Optimization level 53 56 OPTIMIZATION = 3 -
defaults/mips32/Makefile.config
r1e8b633 rcb9313e 44 44 CONFIG_HID_OUT = generic 45 45 46 # Default keyboard layout 47 CONFIG_KB_LAYOUT = us_qwerty 48 46 49 # Barebone build with essential binaries only 47 50 CONFIG_BAREBONE = y -
defaults/ppc32/Makefile.config
r1e8b633 rcb9313e 41 41 CONFIG_HID_OUT = generic 42 42 43 # Default keyboard layout 44 CONFIG_KB_LAYOUT = us_qwerty 45 43 46 # Framebuffer support 44 47 CONFIG_FB = y -
defaults/riscv64/Makefile.config
r1e8b633 rcb9313e 38 38 CONFIG_HID_OUT = generic 39 39 40 # Default keyboard layout 41 CONFIG_KB_LAYOUT = us_qwerty 42 40 43 # Optimization level 41 44 OPTIMIZATION = 3 -
defaults/sparc64/Makefile.config
r1e8b633 rcb9313e 53 53 CONFIG_HID_OUT = generic 54 54 55 # Default keyboard layout 56 CONFIG_KB_LAYOUT = us_qwerty 57 55 58 # Start AP processors by the loader 56 59 CONFIG_AP = y -
defaults/special/Makefile.config
r1e8b633 rcb9313e 32 32 CONFIG_TEST = y 33 33 34 # Default keyboard layout 35 CONFIG_KB_LAYOUT = us_qwerty 36 34 37 # Optimization level 35 38 OPTIMIZATION = 3 -
uspace/srv/hid/input/Makefile
r1e8b633 rcb9313e 32 32 LIBS = drv 33 33 34 ROOT_PATH = $(USPACE_PREFIX)/.. 35 CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config 36 37 include $(CONFIG_MAKEFILE) 38 39 ifndef CONFIG_KB_LAYOUT 40 $(error CONFIG_KB_LAYOUT must be set! Please reconfigure your HelenOS.config) 41 endif 42 34 43 SOURCES = \ 35 layout/cz.c \ 36 layout/us_qwerty.c \ 37 layout/us_dvorak.c \ 38 layout/ar.c \ 44 layout/$(CONFIG_KB_LAYOUT).c \ 39 45 port/chardev.c \ 40 46 proto/mousedev.c \ … … 47 53 stroke.c 48 54 55 49 56 include $(USPACE_PREFIX)/Makefile.common 57 -
uspace/srv/hid/input/input.c
r1e8b633 rcb9313e 66 66 #include "serial.h" 67 67 68 #define NUM_LAYOUTS 469 70 static layout_ops_t *layout[NUM_LAYOUTS] = {71 &us_qwerty_ops,72 &us_dvorak_ops,73 &cz_ops,74 &ar_ops75 };76 77 68 typedef struct { 78 69 /** Link into the list of clients */ … … 206 197 } 207 198 208 // TODO: More elegant layout switching 209 210 if ((type == KEY_PRESS) && (kdev->mods & KM_LCTRL) && 211 (key == KC_F1)) { 199 if ((type == KEY_PRESS) && (kdev->mods & KM_LCTRL) && (key == KC_F1)) { 212 200 layout_destroy(kdev->active_layout); 213 kdev->active_layout = layout_create(layout[0]); 214 return; 215 } 216 217 if ((type == KEY_PRESS) && (kdev->mods & KM_LCTRL) && 218 (key == KC_F2)) { 219 layout_destroy(kdev->active_layout); 220 kdev->active_layout = layout_create(layout[1]); 221 return; 222 } 223 224 if ((type == KEY_PRESS) && (kdev->mods & KM_LCTRL) && 225 (key == KC_F3)) { 226 layout_destroy(kdev->active_layout); 227 kdev->active_layout = layout_create(layout[2]); 228 return; 229 } 230 231 if ((type == KEY_PRESS) && (kdev->mods & KM_LCTRL) && 232 (key == KC_F4)) { 233 layout_destroy(kdev->active_layout); 234 kdev->active_layout = layout_create(layout[3]); 201 kdev->active_layout = layout_create(&layout_default); 235 202 return; 236 203 } … … 392 359 kdev->mods = KM_NUM_LOCK; 393 360 kdev->lock_keys = 0; 394 kdev->active_layout = layout_create( layout[0]);361 kdev->active_layout = layout_create(&layout_default); 395 362 396 363 return kdev; -
uspace/srv/hid/input/layout.h
r1e8b633 rcb9313e 56 56 } layout_ops_t; 57 57 58 extern layout_ops_t us_qwerty_ops; 59 extern layout_ops_t us_dvorak_ops; 60 extern layout_ops_t cz_ops; 61 extern layout_ops_t ar_ops; 58 extern layout_ops_t layout_default; 62 59 63 60 extern layout_t *layout_create(layout_ops_t *); -
uspace/srv/hid/input/layout/ar.c
r1e8b633 rcb9313e 46 46 static wchar_t ar_parse_ev(layout_t *, kbd_event_t *ev); 47 47 48 layout_ops_t ar_ops = { 48 #ifdef CONFIG_KB_LAYOUT_ar 49 50 layout_ops_t layout_default = { 49 51 .create = ar_create, 50 52 .destroy = ar_destroy, 51 53 .parse_ev = ar_parse_ev 52 54 }; 55 56 #endif 53 57 54 58 static wchar_t map_not_shifted[] = { -
uspace/srv/hid/input/layout/cz.c
r1e8b633 rcb9313e 57 57 } layout_cz_t; 58 58 59 layout_ops_t cz_ops = { 59 #ifdef CONFIG_KB_LAYOUT_us_qwerty 60 61 layout_ops_t layout_default = { 60 62 .create = cz_create, 61 63 .destroy = cz_destroy, 62 64 .parse_ev = cz_parse_ev 63 65 }; 66 67 #endif 64 68 65 69 static wchar_t map_lcase[] = { -
uspace/srv/hid/input/layout/us_dvorak.c
r1e8b633 rcb9313e 45 45 static wchar_t us_dvorak_parse_ev(layout_t *, kbd_event_t *ev); 46 46 47 layout_ops_t us_dvorak_ops = { 47 #ifdef CONFIG_KB_LAYOUT_us_dvorak 48 49 layout_ops_t layout_default = { 48 50 .create = us_dvorak_create, 49 51 .destroy = us_dvorak_destroy, 50 52 .parse_ev = us_dvorak_parse_ev 51 53 }; 54 55 #endif 52 56 53 57 static wchar_t map_lcase[] = { -
uspace/srv/hid/input/layout/us_qwerty.c
r1e8b633 rcb9313e 45 45 static wchar_t us_qwerty_parse_ev(layout_t *, kbd_event_t *ev); 46 46 47 layout_ops_t us_qwerty_ops = { 47 #ifdef CONFIG_KB_LAYOUT_us_qwerty 48 49 layout_ops_t layout_default = { 48 50 .create = us_qwerty_create, 49 51 .destroy = us_qwerty_destroy, 50 52 .parse_ev = us_qwerty_parse_ev 51 53 }; 54 55 #endif 52 56 53 57 static wchar_t map_lcase[] = {
Note:
See TracChangeset
for help on using the changeset viewer.