input.c File Reference

#include <SDL.h>
#include "global.h"
#include "clavier.h"
#include "sdlscreen.h"
#include "windows.h"
#include "erreurs.h"
#include "divers.h"
#include "input.h"

Functions

void Handle_Window_Resize (SDL_ResizeEvent event)
void Handle_Window_Exit (SDL_QuitEvent event)
int Est_Raccourci (word Touche, word Fonction)
int Move_cursor_with_constraints ()
void Gere_Evenement_SDL (SDL_Event *event)
void Handle_Window_Exit (__attribute__((unused)) SDL_QuitEvent event)
int Handle_Mouse_Move (SDL_MouseMotionEvent event)
int Handle_Mouse_Click (SDL_MouseButtonEvent event)
int Handle_Mouse_Release (SDL_MouseButtonEvent event)
int Handle_Key_Press (SDL_KeyboardEvent event)
int Relache_controle (int CodeTouche, int Modifieur)
int Handle_Key_Release (SDL_KeyboardEvent event)
int Handle_Joystick_Press (SDL_JoyButtonEvent event)
int Handle_Joystick_Release (SDL_JoyButtonEvent event)
void Handle_Joystick_Movement (SDL_JoyAxisEvent event)
int Cursor_displace (short Delta_X, short Delta_Y)
int Get_input (void)

Variables

byte Directional_up
byte Directional_up_right
byte Directional_right
byte Directional_down_right
byte Directional_down
byte Directional_down_left
byte Directional_left
byte Directional_up_left
long Directional_delay
long Directional_last_move
long Directional_step
short Mouse_count
short Button_shift = -1
short Button_control = -1
short Button_alt = -1
short Button_clic_gauche = 0
short Button_clic_droit = 0

Function Documentation

void Handle_Window_Resize ( SDL_ResizeEvent  event  ) 

References Resize_Hauteur, and Resize_Largeur.

Referenced by Gere_Evenement_SDL(), and Get_input().

void Handle_Window_Exit ( SDL_QuitEvent  event  ) 

Referenced by Gere_Evenement_SDL(), and Get_input().

int Est_Raccourci ( word  Touche,
word  Fonction 
)

int Move_cursor_with_constraints (  ) 

void Gere_Evenement_SDL ( SDL_Event *  event  ) 

void Handle_Window_Exit ( __attribute__((unused)) SDL_QuitEvent  event  ) 

References Quit_demande.

int Handle_Mouse_Move ( SDL_MouseMotionEvent  event  ) 

int Handle_Mouse_Click ( SDL_MouseButtonEvent  event  ) 

int Handle_Mouse_Release ( SDL_MouseButtonEvent  event  ) 

int Handle_Key_Press ( SDL_KeyboardEvent  event  ) 

int Relache_controle ( int  CodeTouche,
int  Modifieur 
)

int Handle_Key_Release ( SDL_KeyboardEvent  event  ) 

int Handle_Joystick_Press ( SDL_JoyButtonEvent  event  ) 

int Handle_Joystick_Release ( SDL_JoyButtonEvent  event  ) 

void Handle_Joystick_Movement ( SDL_JoyAxisEvent  event  ) 

int Cursor_displace ( short  Delta_X,
short  Delta_Y 
)

int Get_input ( void   ) 


Variable Documentation

Referenced by Get_input().

Referenced by Get_input().

Referenced by Get_input().

short Mouse_count

short Button_shift = -1

short Button_control = -1

short Button_alt = -1

short Button_clic_gauche = 0

Referenced by Handle_Joystick_Press().

short Button_clic_droit = 0

Referenced by Handle_Joystick_Press().


Generated on Sat Mar 7 22:45:16 2009 for GrafX2 by  doxygen 1.5.8