Defines common enumeration types for the GameController module.
File to include: <GameControllerKit/game_controller_type.h>
Library: libohgame_controller.z.so
System capability: SystemCapability.Game.GameController
Since: 21
Related module: GameController
| Name | typedef Keyword | Description |
|---|---|---|
| GameController_ErrorCode | GameController_ErrorCode | Defines error codes of the game controller. |
enum GameController_ErrorCode
Description
Defines error codes of the game controller.
System capability: SystemCapability.Game.GameController
Since: 21
| Value | Description |
|---|---|
| GAME_CONTROLLER_SUCCESS = 0 | Success. Since: 21 |
| GAME_CONTROLLER_PARAM_ERROR = 401 | Invalid parameter. Since: 21 |
| GAME_CONTROLLER_MULTIMODAL_INPUT_ERROR = 32200001 | Failed to query all device information in multimodal input. Since: 21 |
| GAME_CONTROLLER_NO_MEMORY = 32200002 | Insufficient device memory. Since: 21 |