Joystick device files initialization class for GtkDeviceManager.
More...
|
| void | addFile (const std::string &sPathName) noexcept |
| | Adds a single device file. More...
|
| |
| void | addBaseNrFiles (const std::string &sPathBaseName) noexcept |
| | Adds numbered device files. More...
|
| |
| const std::vector< std::string > & | getFiles () const noexcept |
| |
| const std::vector< std::string > & | getBaseNrFiles () const noexcept |
| |
Joystick device files initialization class for GtkDeviceManager.
◆ addBaseNrFiles()
| void stmi::JsDeviceFiles::addBaseNrFiles |
( |
const std::string & |
sPathBaseName | ) |
|
|
inlinenoexcept |
Adds numbered device files.
This includes all the files with the given base filename followed by a positive integer number.
Example: "/dev/input/js" adds {"/dev/input/js0", "/dev/input/js1", ..., "/dev/input/js43", ... }
- Parameters
-
| sPathBaseName | Absolute path base of filename. |
◆ addFile()
| void stmi::JsDeviceFiles::addFile |
( |
const std::string & |
sPathName | ) |
|
|
inlinenoexcept |
Adds a single device file.
Example: "/dev/input/js7" or "/dev/special/joystick"
- Parameters
-
| sPathName | Absolute path filename. |
◆ getBaseNrFiles()
| const std::vector<std::string>& stmi::JsDeviceFiles::getBaseNrFiles |
( |
| ) |
const |
|
inlinenoexcept |
◆ getFiles()
| const std::vector<std::string>& stmi::JsDeviceFiles::getFiles |
( |
| ) |
const |
|
inlinenoexcept |