diff options
| author | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-05-26 13:40:38 +0000 |
|---|---|---|
| committer | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-05-26 13:40:38 +0000 |
| commit | 865e8ad6ca3d83ad2a585ceeb1809e9f68c18a20 (patch) | |
| tree | 9944ed8b60fc7844d9c403168f1849756b5de61f /puzzles.h | |
| parent | a1be37343cfab49053396a3a70c7cca14d6f376f (diff) | |
| download | puzzles-865e8ad6ca3d83ad2a585ceeb1809e9f68c18a20.zip puzzles-865e8ad6ca3d83ad2a585ceeb1809e9f68c18a20.tar.gz puzzles-865e8ad6ca3d83ad2a585ceeb1809e9f68c18a20.tar.bz2 puzzles-865e8ad6ca3d83ad2a585ceeb1809e9f68c18a20.tar.xz | |
Add origin-shifting (Shift+cursors) and source-shifting (Ctrl+cursors) to Net.
(Adding modifier+cursors handling has had minor knock-on effects on the other
puzzles, so that they can continue to ignore modifiers.)
(An unfortunate side effect of this is some artifacts in exterior barrier
drawing; notably, a disconnected corner can now appear at the corner of the
grid under some circumstances. I haven't found a satisfactory way round
this yet.)
[originally from svn r5844]
Diffstat (limited to 'puzzles.h')
| -rw-r--r-- | puzzles.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -32,7 +32,10 @@ enum { CURSOR_LEFT, CURSOR_RIGHT, - MOD_NUM_KEYPAD = 0x40000000 + MOD_CTRL = 0x10000000, + MOD_SHFT = 0x20000000, + MOD_NUM_KEYPAD = 0x40000000, + MOD_MASK = 0x70000000 /* mask for all modifiers */ }; #define IS_MOUSE_DOWN(m) ( (unsigned)((m) - LEFT_BUTTON) <= \ |