Set the value of the specified device property of type integer
Synopsis:
#include <screen/screen.h>
int screen_set_device_property_iv(screen_device_t dev,
int pname,
const int *param)
Arguments:
- dev
- The handle of the device whose property is to be set.
- 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:
libscreen
Description:
Function Type: Delayed Execution
This function sets the value of a device property from a user-provided buffer.
You can use this function to set the value of the following properties:
- SCREEN_PROPERTY_ACCELERATION (for SCREEN_EVENT_GAMEPAD, SCREEN_EVENT_JOG, SCREEN_EVENT_JOYSTICK, and SCREEN_EVENT_POINTER only)
- SCREEN_PROPERTY_BALLISTIC_COEFFICIENTS (for SCREEN_EVENT_MTOUCH_TOUCH only)
- SCREEN_PROPERTY_BUTTON_COUNT
- SCREEN_PROPERTY_BUTTON_MAP (for SCREEN_EVENT_GAMEPAD, SCREEN_EVENT_JOG, SCREEN_EVENT_JOYSTICK, and SCREEN_EVENT_POINTER only)
- SCREEN_PROPERTY_DPI (for SCREEN_EVENT_GAMEPAD, SCREEN_EVENT_JOG, SCREEN_EVENT_JOYSTICK, and SCREEN_EVENT_POINTER only)
- SCREEN_PROPERTY_FLOATING (for SCREEN_EVENT_POINTER only)
- SCREEN_PROPERTY_GESTURE_PARAMETERS (for SCREEN_EVENT_GAMEPAD, SCREEN_EVENT_JOG, SCREEN_EVENT_JOYSTICK, and SCREEN_EVENT_MTOUCH_TOUCH only)
- SCREEN_PROPERTY_KEYMAP_PAGE
- SCREEN_PROPERTY_MODE (for SCREEN_EVENT_GAMEPAD, SCREEN_EVENT_JOG, SCREEN_EVENT_JOYSTICK, and SCREEN_EVENT_MTOUCH_TOUCH only)
- SCREEN_PROPERTY_MODIFIERS
- SCREEN_PROPERTY_PERMISSIONS
- SCREEN_PROPERTY_PHYSICAL_SIZE (for SCREEN_EVENT_MTOUCH_TOUCH only)
- SCREEN_PROPERTY_POWER_MODE
- SCREEN_PROPERTY_PRODUCT
- SCREEN_PROPERTY_SCALE_FACTOR
- SCREEN_PROPERTY_SIZE (for SCREEN_EVENT_GAMEPAD, SCREEN_EVENT_JOG, SCREEN_EVENT_JOYSTICK, SCREEN_EVENT_MTOUCH_TOUCH, and SCREEN_EVENT_POINTER only)
- SCREEN_PROPERTY_SPEED (for SCREEN_EVENT_GAMEPAD, SCREEN_EVENT_JOG, SCREEN_EVENT_JOYSTICK, and SCREEN_EVENT_POINTER only)
- SCREEN_PROPERTY_STICKY_MODIFIERS
- SCREEN_PROPERTY_TRANSFORM (for SCREEN_EVENT_MTOUCH_TOUCH only)
- SCREEN_PROPERTY_VENDOR
Returns:
0 if successful, or -1 if an error occurred (errno is set; refer to errno.h for more details).