mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-09 00:31:31 +00:00
[client] input: track pointer confinement state
This commit is contained in:
@@ -84,6 +84,7 @@ void app_handleKeyRelease(int scancode);
|
||||
void app_handleKeyboardModifiers(bool ctrl, bool shift, bool alt, bool super);
|
||||
void app_handleKeyboardLEDs(bool numLock, bool capsLock, bool scrollLock);
|
||||
void app_handleEnterEvent(bool entered);
|
||||
void app_handleGrabEvent(bool active);
|
||||
void app_handleFocusEvent(bool focused);
|
||||
void app_handleCloseEvent(void);
|
||||
void app_handleRenderEvent(const uint64_t timeUs);
|
||||
|
||||
@@ -207,6 +207,7 @@ struct LG_DisplayServerOps
|
||||
/* (un)grabPointer is used to toggle cursor tracking/confine in normal mode */
|
||||
void (*grabPointer)(void);
|
||||
void (*ungrabPointer)(void);
|
||||
bool (*isPointerGrabbed)(void);
|
||||
/* (un)capturePointer is used do toggle special cursor tracking in capture mode */
|
||||
void (*capturePointer)(void);
|
||||
void (*uncapturePointer)(void);
|
||||
@@ -290,6 +291,7 @@ struct LG_DisplayServerOps
|
||||
DEBUG_ASSERT((x)->setPointer ); \
|
||||
DEBUG_ASSERT((x)->grabPointer ); \
|
||||
DEBUG_ASSERT((x)->ungrabPointer ); \
|
||||
DEBUG_ASSERT((x)->isPointerGrabbed ); \
|
||||
DEBUG_ASSERT((x)->capturePointer ); \
|
||||
DEBUG_ASSERT((x)->uncapturePointer ); \
|
||||
DEBUG_ASSERT((x)->isPointerCaptured ); \
|
||||
|
||||
Reference in New Issue
Block a user