mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-10 22:08:37 +08:00
Converted win32 to new keyboard state tracking design. Also
changed locking to screen so that keys no longer count (only mouse buttons and scroll lock toggled on). This is to deal with the unreliability of key event reporting which can leave us locked to a screen with no key physically pressed. The result of this is that clients get key repeats and releases without the corresponding key press. CKeyState handles this by discarding repeat/release events on keys it hasn't seen go down. Also made a few other minor fixes to win32 keyboard handling.
This commit is contained in:
@@ -120,6 +120,12 @@ private:
|
||||
UInt32 getActivePrimarySides() const;
|
||||
|
||||
// returns true iff mouse should be locked to the current screen
|
||||
// according to this object only, ignoring what the primary client
|
||||
// says.
|
||||
bool isLockedToScreenServer() const;
|
||||
|
||||
// returns true iff mouse should be locked to the current screen
|
||||
// according to this object or the primary client.
|
||||
bool isLockedToScreen() const;
|
||||
|
||||
// returns the jump zone of the client
|
||||
|
||||
Reference in New Issue
Block a user