|
libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
|
Base class for all controller mappings. More...
#include <ControllerMapping.h>
Public Member Functions | |
| ControllerMapping (PhysicalDeviceType physicalDeviceType) | |
| Constructs a ControllerMapping for the given physical device type. | |
| ~ControllerMapping () | |
| virtual std::string | GetPhysicalDeviceName () |
| Returns a human-readable name for the physical device associated with this mapping. | |
| PhysicalDeviceType | GetPhysicalDeviceType () |
| Returns the physical device type for this mapping. | |
Protected Attributes | |
| PhysicalDeviceType | mPhysicalDeviceType |
Base class for all controller mappings.
ControllerMapping associates a mapping with a physical device type and provides a common interface for querying the device name and type. All specialized mapping classes (button, axis, gyro, rumble, LED) derive from this class.
| Ship::ControllerMapping::ControllerMapping | ( | PhysicalDeviceType | physicalDeviceType | ) |
Constructs a ControllerMapping for the given physical device type.
| physicalDeviceType | The type of physical device this mapping targets. |
| Ship::ControllerMapping::~ControllerMapping | ( | ) |
|
virtual |
Returns a human-readable name for the physical device associated with this mapping.
Reimplemented in Ship::KeyboardKeyToAnyMapping, Ship::KeyboardKeyToAxisDirectionMapping, Ship::KeyboardKeyToButtonMapping, Ship::MouseButtonToAnyMapping, Ship::MouseButtonToAxisDirectionMapping, Ship::MouseButtonToButtonMapping, Ship::MouseWheelToAnyMapping, Ship::MouseWheelToAxisDirectionMapping, Ship::MouseWheelToButtonMapping, Ship::SDLAxisDirectionToAnyMapping, Ship::SDLAxisDirectionToAxisDirectionMapping, Ship::SDLAxisDirectionToButtonMapping, Ship::SDLButtonToAnyMapping, Ship::SDLButtonToAxisDirectionMapping, Ship::SDLButtonToButtonMapping, Ship::SDLGyroMapping, Ship::SDLLEDMapping, and Ship::SDLRumbleMapping.
| PhysicalDeviceType Ship::ControllerMapping::GetPhysicalDeviceType | ( | ) |
Returns the physical device type for this mapping.
|
protected |