SDL 手柄/摇杆后端实现(含 GameController 与振动)。 更多...
#include <Pad.h>
Public 成员函数 | |
| Pad (int id) | |
| Pad (int id, int joyindex) | |
| ~Pad () override | |
| bool | open (int deviceindex) override |
| void | close () override |
| bool | isConnected () const override |
| std::string | getName () const override |
| int | getAxisCount () const override |
| int | getButtonCount () const override |
| int | getHatCount () const override |
| float | getAxis (int axisindex) const override |
| std::vector< float > | getAxes () const override |
| std::string | getHat (int hatindex) const override |
| bool | isDown (int button) const override |
| bool | isDown (const std::vector< int > &buttons) const override |
| bool | openGamepad (int deviceindex) override |
| bool | isGamepad () const override |
| float | getGamepadAxis (const std::string &axis) const override |
| bool | isGamepadDown (const std::string &button) const override |
| bool | isGamepadDown (const std::vector< std::string > &buttons) const override |
| std::string | getGamepadMappingString () const override |
| void * | getHandle () const override |
| std::string | getGUID () const override |
| int | getInstanceID () const override |
| int | getID () const override |
| void | getDeviceInfo (int &vendorID, int &productID, int &productVersion) const override |
| bool | isVibrationSupported () override |
| bool | setVibration (float left, float right, float duration=-1.0f) override |
| bool | setVibration () override |
| void | getVibration (float &left, float &right) override |
详细描述
构造及析构函数说明
◆ Pad() [1/2]
◆ Pad() [2/2]
◆ ~Pad()
|
overridevirtual |
成员函数说明
◆ close()
|
overridevirtual |
实现了 eve::joystick::Pad.
被这些函数引用 eve::joystick::sdl::Joystick::addJoystick(), open() , 以及 ~Pad().
◆ getAxes()
|
overridevirtual |
实现了 eve::joystick::Pad.
引用了 eve::joystick::clampAxis(), getAxisCount() , 以及 isConnected().
◆ getAxis()
|
overridevirtual |
实现了 eve::joystick::Pad.
引用了 eve::joystick::clampAxis(), getAxisCount() , 以及 isConnected().
◆ getAxisCount()
|
overridevirtual |
◆ getButtonCount()
|
overridevirtual |
◆ getDeviceInfo()
|
overridevirtual |
实现了 eve::joystick::Pad.
◆ getGamepadAxis()
|
overridevirtual |
实现了 eve::joystick::Pad.
引用了 eve::joystick::clampAxis(), isConnected(), isGamepad() , 以及 value.
◆ getGamepadMappingString()
|
overridevirtual |
实现了 eve::joystick::Pad.
◆ getGUID()
|
overridevirtual |
◆ getHandle()
|
overridevirtual |
◆ getHat()
|
overridevirtual |
◆ getHatCount()
|
overridevirtual |
◆ getID()
|
overridevirtual |
实现了 eve::joystick::Pad.
◆ getInstanceID()
|
overridevirtual |
实现了 eve::joystick::Pad.
◆ getName()
|
overridevirtual |
实现了 eve::joystick::Pad.
◆ getVibration()
|
overridevirtual |
◆ isConnected()
|
overridevirtual |
实现了 eve::joystick::Pad.
被这些函数引用 getAxes(), getAxis(), getAxisCount(), getButtonCount(), getGamepadAxis(), getHat(), getHatCount(), isDown(), isGamepadDown() , 以及 open().
◆ isDown() [1/2]
|
overridevirtual |
◆ isDown() [2/2]
|
overridevirtual |
◆ isGamepad()
|
overridevirtual |
◆ isGamepadDown() [1/2]
|
overridevirtual |
◆ isGamepadDown() [2/2]
|
overridevirtual |
◆ isVibrationSupported()
|
overridevirtual |
◆ open()
|
overridevirtual |
实现了 eve::joystick::Pad.
引用了 close(), isConnected() , 以及 openGamepad().
被这些函数引用 eve::joystick::sdl::Joystick::addJoystick() , 以及 Pad().
◆ openGamepad()
|
overridevirtual |
◆ setVibration() [1/2]
|
overridevirtual |
◆ setVibration() [2/2]
|
overridevirtual |
该类的文档由以下文件生成: