|
1 | 1 | /* vim:set cin ft=c sw=4 sts=4 ts=8 et ai cino=Ls\:0t0(0 : -*- mode:c;fill-column:80;tab-width:8;c-basic-offset:4;indent-tabs-mode:nil;c-file-style:"k&r" -*-*/
|
2 |
| -/* Last modified by Alex Smith, 2014-05-30 */ |
| 2 | +/* Last modified by Alex Smith, 2017-07-20 */ |
3 | 3 | /* Copyright (c) 2013 Alex Smith. */
|
4 | 4 | /* The 'uncursed' rendering library may be distributed under either of the
|
5 | 5 | * following licenses:
|
@@ -75,15 +75,9 @@ main(int argc, char **argv)
|
75 | 75 | mvprintw(0, 0, "%d '", k);
|
76 | 76 | set_mouse_event(uncursed_mbutton_hover, 0, ERR);
|
77 | 77 |
|
78 |
| -#ifdef AIMAKE_BUILDOS_linux |
79 |
| - set_mouse_event(uncursed_mbutton_left, L'é', OK); |
80 |
| - set_mouse_event(uncursed_mbutton_middle, L'ê', OK); |
81 |
| - set_mouse_event(uncursed_mbutton_right, L'è', OK); |
82 |
| -#else |
83 |
| - set_mouse_event(uncursed_mbutton_left, 'l', OK); |
84 |
| - set_mouse_event(uncursed_mbutton_middle, 'm', OK); |
85 |
| - set_mouse_event(uncursed_mbutton_right, 'r', OK); |
86 |
| -#endif |
| 78 | + set_mouse_event(uncursed_mbutton_left, 0xe9, OK); |
| 79 | + set_mouse_event(uncursed_mbutton_middle, 0xea, OK); |
| 80 | + set_mouse_event(uncursed_mbutton_right, 0xe8, OK); |
87 | 81 | set_mouse_event(uncursed_mbutton_wheelup, KEY_F17, KEY_CODE_YES);
|
88 | 82 | set_mouse_event(uncursed_mbutton_wheeldown, KEY_MAX+1, KEY_CODE_YES);
|
89 | 83 | add_wch(&ct);
|
|
0 commit comments