C4 Engine
C4 Engine API Documentation

class PlayStationDevice

Defined in:  C4Input.h
Encapsulates a PlayStation game controller device (PS5 and PS4 only).

class PlayStationDevice final : public InputDevice

The PlayStationDevice class encapsulates a PlayStation game controller device. This type of input device can exist only on the PS5 and PS4 platforms.

The following table lists the input controls belonging to a PlayStation device and their corresponding 32-bit HID usage values. All PlayStation devices have exactly the input controls listed in this table and no others.
0x00010030 Left stick x axis.
0x00010031 Left stick y axis.
0x00010032 Right stick x axis.
0x00010035 Right stick y axis.
0x00010090 Directional pad up.
0x00010091 Directional pad down.
0x00010092 Directional pad right.
0x00010093 Directional pad down.
0x00090001 Square button.
0x00090002 Cross button.
0x00090003 Circle button.
0x00090004 Triangle button.
0x00090005 L1 button.
0x00090006 R1 button.
0x00090007 L2 button.
0x00090008 R2 button.
0x0009000A Options button.
0x0009000B Left stick button.
0x0009000C Right stick button.
Base Classes
InputDevice An PlayStationDevice is a specific type of input device.
See Also