Screen sensitivity types

Types of sensitivities.

Synopsis:

#include <screen/screen.h>
 
 enum {
      SCREEN_SENSITIVITY_TEST = 0   
      SCREEN_SENSITIVITY_ALWAYS = 1   
      SCREEN_SENSITIVITY_NEVER = 2   
      SCREEN_SENSITIVITY_NO_FOCUS = 3   
      SCREEN_SENSITIVITY_FULLSCREEN = 4   
};

Data:

SCREEN_SENSITIVITY_TEST
The default sensitivity.

Pointer and multi-touch events are forwarded to the window's context if they intersect with the window and are in an area of the window that is not fully transparent. The window receives keyboard, gamepad, joystick events if it has input focus. Raising a window, pointer or multi-touch release event in the window will cause the window to acquire input focus.

SCREEN_SENSITIVITY_ALWAYS
That pointer and touch events are always forwarded to the window's context if they interect with the window - even if the window is transparent in that area.

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.

SCREEN_SENSITIVITY_NEVER
The window never receives pointer or multi-touch events.

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.

SCREEN_SENSITIVITY_NO_FOCUS
Pointer and touch events are forwarded to the window's context if they intersect the window and are in an area of the window that is not fully transparent.

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.

SCREEN_SENSITIVITY_FULLSCREEN
Pointer and touch events are forwarded to the window's context no matter where they are on the screen.

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 if it has input focus. Raising the window or a pointer or multi-touch release event in the window will cause it to acquire input focus.

Library:

libscreen

Description:

Last modified: 2013-12-21

comments powered by Disqus