Struct representing touch input device data. More...
#include <kanzi/core.ui/platform/input_ng/evdev/touch_input_device_data.hpp>
Public Member Functions | |
| KZ_NO_DISCARD int | getFd () const noexcept |
| Gets the file descriptor handle for this device. | |
| KZ_NO_DISCARD KanziEvdevState | getSyncState () const noexcept |
| Gets the current sync state. | |
| void | handleSyncEvents (const struct input_event &ev, kanzi::EventQueue &queue) |
| Handles sync events. | |
| void | handleTouchEvents (unsigned int width, unsigned int height, const struct input_event &ev) |
| Handles touch events. | |
| bool | isTouchFinished () const noexcept |
| Returns whether touch is finished. | |
| void | processTouchEvents (EventQueue &queue) |
| Processes touch events. | |
| void | setSyncState (KanziEvdevState syncState) |
| Sets the current sync state. | |
| TouchInputDeviceData (int fileDescriptor, const input_absinfo &absinfoX, const input_absinfo &absinfoY, vector< CursorData > cursorBuffer, int currentSlot) | |
| Constructor. | |
Struct representing touch input device data.
|
explicit |
Constructor.
| fileDescriptor | Input device file descriptor. |
| absinfoX | Touch panel geometry for the x axis. |
| absinfoY | Touch panel geometry for the y axis. |
| cursorBuffer | Buffer for cursor slots. |
| currentSlot | Slot for incoming touch-events from the operating system. |
|
noexcept |
Gets the file descriptor handle for this device.
|
noexcept |
Gets the current sync state.
| void kanzi::evdev::TouchInputDeviceData::setSyncState | ( | KanziEvdevState | syncState | ) |
Sets the current sync state.
| syncState | Sync state to set. |
|
noexcept |
Returns whether touch is finished.
| void kanzi::evdev::TouchInputDeviceData::processTouchEvents | ( | EventQueue & | queue | ) |
Processes touch events.
| queue | The queue to push new events to. |
| void kanzi::evdev::TouchInputDeviceData::handleTouchEvents | ( | unsigned int | width, |
| unsigned int | height, | ||
| const struct input_event & | ev ) |
Handles touch events.
| width | Touch panel width. |
| height | Touch panel height. |
| ev | The event to handle. |
| void kanzi::evdev::TouchInputDeviceData::handleSyncEvents | ( | const struct input_event & | ev, |
| kanzi::EventQueue & | queue ) |
Handles sync events.
| ev | The event to handle. |
| queue | The queue to push new events to. |