Types of sensitivity masks.
#include <screen/screen.h>
enum { SCREEN_SENSITIVITY_MASK_ALWAYS = (1 << 0) SCREEN_SENSITIVITY_MASK_NEVER = (2 << 0) SCREEN_SENSITIVITY_MASK_NO_FOCUS = (1 << 3) SCREEN_SENSITIVITY_MASK_FULLSCREEN = (1 << 4) SCREEN_SENSITIVITY_MASK_CONTINUE = (1 << 5) SCREEN_SENSITIVITY_MASK_STOP = (2 << 5) SCREEN_SENSITIVITY_MASK_POINTER_BRUSH = (1 << 7) SCREEN_SENSITIVITY_MASK_FINGER_BRUSH = (1 << 8) SCREEN_SENSITIVITY_MASK_STYLUS_BRUSH = (1 << 9) SCREEN_SENSITIVITY_MASK_OVERDRIVE = (1 << 10) };
The window receives keyboard, gamepad, joystick events if it has input focus. Raising a window, pointer or multi-touch release event in that window will cause it to acquire input focus.
The window never acquires input focus, even after it has been raised. The window will only receive input events that are directly injected into it from outside sources.
The window does not acquire input focus after being raised or after a pointer or multi-touch release event occurs. Therefore, the window will not receive keyboard, gamepad, or joystick input unless it is sent directly into the window from an outside source.
The window is considered full screen for the purposes of input hit tests. Transparency is ignored. The window will receive keyboard, gamepad, and joystick events as long as the window is visible.
The window never acquires input focus, even after it has been raised. The window will only receive input events that are directly injected into it from outside sources.
This mode supercedes SCREEN_SENSITIVITY_MASK_NEVER. The windowing system also draws brush strokes based on the pointer events directly onto the screen and the window buffer.
This mode supercedes SCREEN_SENSITIVITY_MASK_NEVER. The windowing system also draws brush strokes based on the touch events directly onto the screen and the window buffer. Multiple contacts will cause multiple brush strokes to be drawn.
This mode supercedes SCREEN_SENSITIVITY_MASK_NEVER. The windowing system also draws brush strokes based on the touch events directly onto the screen and the window buffer. Multiple contacts will cause multiple brush strokes to be drawn.
These masks are intended to be combined in a single integer bitmask representing combinations of desired senstivites to be applied to a window.