Kanzi 4.0.0-beta2
kanzi::evdev::EvdevInput Class Reference

Class representing evdev input. More...

#include <kanzi/core.ui/platform/input_ng/evdev/evdev_input.hpp>

Public Member Functions

 EvdevInput (const EvdevInput &)=delete
 Copy constructor.
 
 EvdevInput (const std::string &devicePaths, unsigned int width, unsigned int height)
 Constructor.
 
 EvdevInput (EvdevInput &&) noexcept=delete
 Move constructor.
 
 EvdevInput (unsigned int width, unsigned int height)
 Constructor.
 
void gatherData (EventQueue &queue)
 Gather input data into an even queue.
 
KZ_NO_DISCARD int getFileDescriptor () const noexcept
 Gets file descriptor for epoll.
 
KZ_NO_DISCARD unsigned int getHeight () const noexcept
 Gets the touch panel height.
 
KZ_NO_DISCARD unsigned int getWidth () const noexcept
 Gets the touch panel width.
 
EvdevInputoperator= (const EvdevInput &)=delete
 Copy assignment operator.
 
EvdevInputoperator= (EvdevInput &&) noexcept=delete
 Move assignment operator.
 
 ~EvdevInput ()
 Destructor.
 

Detailed Description

Class representing evdev input.

Since
Kanzi 3.9.13

Constructor & Destructor Documentation

◆ EvdevInput() [1/4]

kanzi::evdev::EvdevInput::EvdevInput ( unsigned int width,
unsigned int height )
explicit

Constructor.

Configures all devices in /dev/input when there is no device name specified.

Parameters
widthTouch panel width.
heightTouch panel height.

◆ EvdevInput() [2/4]

kanzi::evdev::EvdevInput::EvdevInput ( const std::string & devicePaths,
unsigned int width,
unsigned int height )
explicit

Constructor.

Configures the specified devices.

Parameters
devicePathsA semicolon-separated list of input device paths.
widthTouch panel width.
heightTouch panel height.

◆ ~EvdevInput()

kanzi::evdev::EvdevInput::~EvdevInput ( )

Destructor.

◆ EvdevInput() [3/4]

kanzi::evdev::EvdevInput::EvdevInput ( const EvdevInput & )
delete

Copy constructor.

◆ EvdevInput() [4/4]

kanzi::evdev::EvdevInput::EvdevInput ( EvdevInput && )
deletenoexcept

Move constructor.

Member Function Documentation

◆ operator=() [1/2]

EvdevInput & kanzi::evdev::EvdevInput::operator= ( const EvdevInput & )
delete

Copy assignment operator.

◆ operator=() [2/2]

EvdevInput & kanzi::evdev::EvdevInput::operator= ( EvdevInput && )
deletenoexcept

Move assignment operator.

◆ getFileDescriptor()

KZ_NO_DISCARD int kanzi::evdev::EvdevInput::getFileDescriptor ( ) const
noexcept

Gets file descriptor for epoll.

Returns
File descriptor for epoll.

◆ getWidth()

KZ_NO_DISCARD unsigned int kanzi::evdev::EvdevInput::getWidth ( ) const
noexcept

Gets the touch panel width.

Returns
Touch panel width.

◆ getHeight()

KZ_NO_DISCARD unsigned int kanzi::evdev::EvdevInput::getHeight ( ) const
noexcept

Gets the touch panel height.

Returns
Touch panel height.

◆ gatherData()

void kanzi::evdev::EvdevInput::gatherData ( EventQueue & queue)

Gather input data into an even queue.

Parameters
queueThe event queue to save input data into.

The documentation for this class was generated from the following file: