diff options
| author | rillig <rillig@NetBSD.org> | 2022-05-22 13:38:08 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2022-05-22 13:38:08 +0000 |
| commit | 8c70bcfc268313c351e1550f064e8adeb4dfb2a3 (patch) | |
| tree | d5444bbf3aef44b86fc51c422410b7916661f420 /sys/dev/microcode/tools/array2bin.c | |
| parent | 5a52239a14aa788c81c5e577e947dcef41d36554 (diff) | |
gomoku: add mouse support
NetBSD 10 provides the mouse handling functions from <curses.h> but does
not actually implement the mouse handling. For the benefit of other
platforms, add mouse support; when linked with ncurses instead of
curses, it works.
Depending on the input device, mouse clicks are either reported as
"button 1 clicked" (mouse) or "button 1 pressed/released" (touchpad);
support both.
Be strict about the X coordinate when clicking. Since the coordinates
are integer numbers, getting the location between two spots is
ambiguous, as it could be just one pixel away or right in the middle of
the space between the spots.
Diffstat (limited to 'sys/dev/microcode/tools/array2bin.c')
0 files changed, 0 insertions, 0 deletions
