Module Name: src Committed By: rillig Date: Sun May 22 13:38:08 UTC 2022
Modified Files: src/games/gomoku: bdisp.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/games/gomoku/bdisp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.