mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-05 03:17:51 +08:00
Fixed regression where cursor wasn't locked to screen when a mouse
button is down on win32.
This commit is contained in:
@@ -157,6 +157,9 @@ private:
|
||||
// map a button event to a button ID
|
||||
ButtonID mapButtonFromEvent(WPARAM msg, LPARAM button) const;
|
||||
|
||||
// map a button event to a press (true) or release (false)
|
||||
bool mapPressFromEvent(WPARAM msg, LPARAM button) const;
|
||||
|
||||
// fix the key state, synthesizing fake key releases for keys
|
||||
// that aren't down anymore.
|
||||
void fixKeys();
|
||||
|
||||
Reference in New Issue
Block a user