diff --git a/examples/core/core_input_actions.c b/examples/core/core_input_actions.c index 633c3ee85..b8266a8f4 100644 --- a/examples/core/core_input_actions.c +++ b/examples/core/core_input_actions.c @@ -1,7 +1,7 @@ /******************************************************************************************* * -* raylib [core_input_actions] example - presents a simple API for remapping input to actions +* raylib [core_inputactionInputs] example - presents a simple API for remapping input to actions * * Example complexity rating: [★☆☆☆] 1/4 * @@ -30,7 +30,9 @@ #include #include #include "raylib.h" + // add your own action types here + typedef enum ActionType { NO_ACTION, @@ -51,13 +53,13 @@ typedef struct ActionInput // gamepad index, change this if you have multiple gamepads. int gamepadIndex = 0; -static ActionInput _actions[MAX_ACTION] = {0}; +static ActionInput actionInputs[MAX_ACTION] = {0}; // combines IsKeyPressed and IsGameButtonPressed to one action bool isActionPressed(int action) { if (action