In the past I used a "Finite State Machine" to follow a sequence of keystrokes to completion, but I don't think it's effective and I was wondering how you guys would implement this:
(I have the keyboard & mouse hook lib worked out)
When a sequence of events (keystrokes & a mouse-click) occur I need to do something while the mouse button is held down. When I used the FSM it was complicated and somewhat hard to debug.
Events = ctrl + shift + lmb down ... lmb up
lmb up ends the sequence.
Edited 5 Years Ago by pseudorandom21: n/a