1.1 --- a/conf/landfall-examples/mips-letux400-keypad-demo.cfg Fri May 18 15:35:58 2018 +0200
1.2 +++ b/conf/landfall-examples/mips-letux400-keypad-demo.cfg Fri May 18 17:19:28 2018 +0200
1.3 @@ -154,25 +154,49 @@
1.4 },
1.5 "rom/ex_letux400_keypad_physical");
1.6
1.7 +-- Expose the keypad events.
1.8 +
1.9 +local ev1 = l:new_channel();
1.10 +
1.11 +l:start({
1.12 + caps = {
1.13 + keypad = keypad,
1.14 + ev = ev1:svr(),
1.15 + },
1.16 + },
1.17 + "rom/dev_input_keypad_letux400");
1.18 +
1.19 -- Show key event values.
1.20
1.21 l:start({
1.22 caps = {
1.23 - fb = mag_caps.svc:create(L4.Proto.Goos, "g=400x220+0+240", "barheight=20"),
1.24 - keypad = keypad,
1.25 + fb = mag_caps.svc:create(L4.Proto.Goos, "g=400x220+0+240", "barheight=20"),
1.26 + ev = ev1,
1.27 },
1.28 },
1.29 - "rom/ex_letux400_keypad_driver");
1.30 + "rom/ex_input_event_client");
1.31 +
1.32 +-- Expose the keypad events.
1.33 +
1.34 +local ev2 = l:new_channel();
1.35 +
1.36 +l:start({
1.37 + caps = {
1.38 + keypad = keypad,
1.39 + ev = ev2:svr(),
1.40 + },
1.41 + },
1.42 + "rom/dev_input_keypad_letux400");
1.43
1.44 -- Show key strings.
1.45
1.46 l:startv({
1.47 caps = {
1.48 - fb = mag_caps.svc:create(L4.Proto.Goos, "g=400x220+400+240", "barheight=20"),
1.49 - keypad = keypad,
1.50 + fb = mag_caps.svc:create(L4.Proto.Goos, "g=400x220+400+240", "barheight=20"),
1.51 + ev = ev2,
1.52 },
1.53 },
1.54 - "rom/ex_letux400_keypad_driver", "chars");
1.55 + "rom/ex_input_event_client", "chars");
1.56
1.57 -- Control the backlight using the keyboard.
1.58