Implementation for a virtual gamepad input device that is controlled using a touch screen.
More...
#include <InputDeviceVirtualGamepad.h>
Inherits AzFramework::InputDevice.
|
| AZ_CLASS_ALLOCATOR (InputDeviceVirtualGamepad, AZ::SystemAllocator) |
|
| AZ_RTTI (InputDeviceVirtualGamepad, "{DC4B939E-66C7-4F76-B7DF-049A3F13A1C3}", InputDevice) |
|
| InputDeviceVirtualGamepad (const AZStd::unordered_set< AZStd::string > &buttonNames, const AZStd::unordered_set< AZStd::string > &thumbStickNames) |
|
| ~InputDeviceVirtualGamepad () override |
| Destructor.
|
|
const InputChannelByIdMap & | GetInputChannelsById () const override |
| AzFramework::InputDevice::GetInputChannelsById
|
|
bool | IsSupported () const override |
| AzFramework::InputDevice::IsSupported
|
|
bool | IsConnected () const override |
| AzFramework::InputDevice::IsConnected
|
|
void | TickInputDevice () override |
| AzFramework::InputDeviceRequests::TickInputDevice
|
|
|
static const AzFramework::InputDeviceId | Id |
| The id used to identify the primary virtual gamepad input device.
|
|
Implementation for a virtual gamepad input device that is controlled using a touch screen.
◆ InputDeviceVirtualGamepad()
VirtualGamepad::InputDeviceVirtualGamepad::InputDeviceVirtualGamepad |
( |
const AZStd::unordered_set< AZStd::string > & |
buttonNames, |
|
|
const AZStd::unordered_set< AZStd::string > & |
thumbStickNames |
|
) |
| |
|
explicit |
Constructor
- Parameters
-
[in] | buttonNames | The list of button names supported by the virtual gamepad |
[in] | thumbStickNames | The list of thumbstick names supported by the virtual gamepad |
◆ CreateButtonChannel()
void VirtualGamepad::InputDeviceVirtualGamepad::CreateButtonChannel |
( |
const AZStd::string & |
channelName | ) |
|
|
protected |
Create a button input channel
- Parameters
-
[in] | channelName | The input channel name |
◆ CreateThumbStickAxis1DChannel()
void VirtualGamepad::InputDeviceVirtualGamepad::CreateThumbStickAxis1DChannel |
( |
const AZStd::string & |
channelName | ) |
|
|
protected |
Create a thumb-stick axis 1D input channel
- Parameters
-
[in] | channelName | The input channel name |
◆ CreateThumbStickAxis2DChannel()
void VirtualGamepad::InputDeviceVirtualGamepad::CreateThumbStickAxis2DChannel |
( |
const AZStd::string & |
channelName | ) |
|
|
protected |
Create a thumb-stick axis 2D input channel
- Parameters
-
[in] | channelName | The input channel name |
◆ CreateThumbStickDirectionChannel()
void VirtualGamepad::InputDeviceVirtualGamepad::CreateThumbStickDirectionChannel |
( |
const AZStd::string & |
channelName | ) |
|
|
protected |
Create a thumb-stick direction input channel
- Parameters
-
[in] | channelName | The input channel name |
◆ IsVirtualGamepadDevice()
static bool VirtualGamepad::InputDeviceVirtualGamepad::IsVirtualGamepadDevice |
( |
const AzFramework::InputDeviceId & |
inputDeviceId | ) |
|
|
static |
Check whether an input device id identifies a virtual gamepad (regardless of index)
- Parameters
-
[in] | inputDeviceId | The input device id to check |
- Returns
- True if the input device id identifies a virtual gamepad, false otherwise
The documentation for this class was generated from the following file:
- Gems/VirtualGamepad/Code/Source/InputDeviceVirtualGamepad.h