Closed asamy closed 7 years ago
Thanks! I like this, but I'm wondering if it can be made easier to hack if someone wants different hotkeys, something like this at the top with an array of keycodes and callbacks:
static const FARPROC HotKeyCallbacks[256] = {
['A'] = ToggleCorners,
['C'] = ExitCorners,
['G'] = GrowCornerZone,
['S'] = ShrinkCornerZone,
['Z'] = SwitchToNextCorner,
// etc
}
Then disabling/adding/changing hotkeys and recompiling is easier?
Looks good now? Maybe we should also remove the mouse state checks in corner thread?
I like it, merged. Thanks!
Oops, it doesn't work with my version of visual studio, let me try to fix it up.
That's odd, I used VS 2015 compiler.
Ah, I had some debugging flags and it didn't like the FARPROC cast, I just rearranged it a bit.
This should help a little, I am not sure if the hotkeys are actually suitably aligned...
Following hotkeys are new: LCTRL+LALT +A => toggle +C => shut down