| 1 | // SPDX-FileCopyrightText: 2009 Ingo Ruhnke <[email protected]> |
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | |
| 4 | #ifndef HEADER_JSTEST_GTK_JOYSTICK_DESCRIPTION_HPP |
| 5 | #define HEADER_JSTEST_GTK_JOYSTICK_DESCRIPTION_HPP |
| 6 | |
| 7 | #include <string> |
| 8 | |
| 9 | class JoystickDescription |
| 10 | { |
| 11 | private: |
| 12 | public: |
| 13 | std::string filename; |
| 14 | std::string name; |
| 15 | std::string js_id; |
| 16 | std::string vendor_id; |
| 17 | std::string product_id; |
| 18 | std::string usb_id; |
| 19 | int axis_count; |
| 20 | int button_count; |
| 21 | |
| 22 | JoystickDescription(const std::string& filename_, |
| 23 | const std::string& name_, |
| 24 | const std::string& js_id_, |
| 25 | const std::string& vendor_id_, |
| 26 | const std::string& product_id_, |
| 27 | const std::string& usb_id_, |
| 28 | int axis_count_, |
| 29 | int button_count_) |
| 30 | : filename(filename_), |
| 31 | name(name_), |
| 32 | js_id(js_id_), |
| 33 | vendor_id(vendor_id_), |
| 34 | product_id(product_id_), |
| 35 | usb_id(usb_id_), |
| 36 | axis_count(axis_count_), |
| 37 | button_count(button_count_) |
| 38 | {} |
| 39 | }; |
| 40 | |
| 41 | #endif |
| 42 | |
| 43 | /* EOF */ |