screen_set_event_property_iv()
Graphics and Screen4.0 (8.x)Screen Graphics Subsystem Developer's GuideAPIProgrammingUtilities
Set the value of the specified event property of type integer
Synopsis:
#include <screen/screen.h>
int screen_set_event_property_iv(screen_event_t ev,
int pname,
const int *param)
Arguments:
- ev
- The handle of the event whose property is being set. Ensure that you've set the
SCREEN_PROPERTY_TYPE
to one of the valid Screen property types prior to calling this function. - pname
- The name of the property whose value is being set. The properties that you can set are of type Screen property types.
- param
- A pointer to a buffer containing the new value(s). This buffer must be of type
int
. param may be a single integer or an array of integers depending on the property being set.
Library:
libscreenDescription:
Function Type: Immediate Execution
This function sets the value of an event property from a user-provided buffer. The list of properties that can be set per event type are listed as follows:
Event Type: Any
Event Type: SCREEN_EVENT_DISPLAY
Event Type: SCREEN_EVENT_GAMEPAD
Event Type: SCREEN_EVENT_IDLE
Event Type: SCREEN_EVENT_INPUT_CONTROL
Event Type: SCREEN_EVENT_JOYSTICK
Event Type: SCREEN_EVENT_KEYBOARD
Event Type: SCREEN_EVENT_MANAGER
Event Types: SCREEN_EVENT_MTOUCH_PRETOUCH, SCREEN_EVENT_MTOUCH_TOUCH, SCREEN_EVENT_MTOUCH_MOVE, SCREEN_EVENT_MTOUCH_RELEASE
- SCREEN_PROPERTY_BUTTONS
- SCREEN_PROPERTY_DEVICE
- SCREEN_PROPERTY_MODIFIERS
- SCREEN_PROPERTY_POSITION
- SCREEN_PROPERTY_SEQUENCE_ID
- SCREEN_PROPERTY_SIZE
- SCREEN_PROPERTY_SOURCE_POSITION
- SCREEN_PROPERTY_SOURCE_SIZE
- SCREEN_PROPERTY_TOUCH_ID
- SCREEN_PROPERTY_TOUCH_ORIENTATION
- SCREEN_PROPERTY_TOUCH_PRESSURE
- SCREEN_PROPERTY_TOUCH_TYPE
Event Type: SCREEN_EVENT_POINTER
Event Type: SCREEN_EVENT_PROPERTY
Event Type: SCREEN_EVENT_USER
Returns:
0
if successful, or -1
if an error occurred (errno
is set; refer to errno.h
for more details).
Page updated: