libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
Ship::ControllerMapping Class Reference

Base class for all controller mappings. More...

#include <ControllerMapping.h>

Inheritance diagram for Ship::ControllerMapping:
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ControllerMapping()

Ship::ControllerMapping::ControllerMapping ( PhysicalDeviceType  physicalDeviceType)

Constructs a ControllerMapping for the given physical device type.

Parameters
physicalDeviceTypeThe type of physical device this mapping targets.

◆ ~ControllerMapping()

Ship::ControllerMapping::~ControllerMapping ( )

Member Function Documentation

◆ GetPhysicalDeviceName()

◆ GetPhysicalDeviceType()

PhysicalDeviceType Ship::ControllerMapping::GetPhysicalDeviceType ( )

Returns the physical device type for this mapping.

Returns
The PhysicalDeviceType enum value.

Member Data Documentation

◆ mPhysicalDeviceType

PhysicalDeviceType Ship::ControllerMapping::mPhysicalDeviceType
protected

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