Dumb-ways-to-memorize
2D game
player_controller.h
Go to the documentation of this file.
1 #ifndef __PLAYER_CONTROLLER__H
2 #define __PLAYER_CONTROLLER__H
3 #include <SDL.h>
4 
5 #define BUTTON_NO_INPUT -1
6 
7 extern SDL_GameController *gController; /**< The controller */
8 extern SDL_GameControllerButton gButtonQ; /**< The button qeueu updated with the current button pressed*/
9 
10 /**
11  * Executes the player think operation for player input.
12  *
13  * @param [in,out] player If non-null, the player.
14  * @param button The button.
15  *
16  * @author Anthony Rios
17  * @date 3/29/2016
18  */
19 void DoPlayerThink(void *player, SDL_GameControllerButton button);
20 
21 
22 #endif
SDL_GameControllerButton gButtonQ
Definition: game.c:49
SDL_GameController * gController
Definition: game.c:48
void DoPlayerThink(void *player, SDL_GameControllerButton button)