1#ifndef TCRSDK_GAMEPAD_H_
2#define TCRSDK_GAMEPAD_H_
This interface is used to interact with the virtual Gamepad device on the server.
Definition gamepad.h:10
virtual void OnGamepadKey(int32_t keycode, bool down) const =0
Trigger a key event of the cloud Gamepad.
virtual void OnGamepadTrigger(const Gamepad::KeyType &type, int32_t value, bool down) const =0
Trigger a trigger event of the cloud Gamepad.
KeyType
The type of a general controller button.
Definition gamepad.h:15
virtual void DisconnectGamepad() const =0
Trigger the cloud machine to pull out the virtual Gamepad.
virtual void OnGamepadStick(const Gamepad::KeyType &type, int32_t x, int32_t y) const =0
Trigger a stick event of the cloud Gamepad.
virtual void ConnectGamepad() const =0
Trigger the cloud machine to insert the virtual Gamepad.