(20111219) 01:00

This commit is contained in:
2011-12-19 01:00:00 +01:00
parent 0f403b8234
commit 49ce46f808
97 changed files with 1280 additions and 159 deletions

17
Input.c
View File

@@ -41,6 +41,8 @@ void Input_Frame(){
Input_SetKey(InputKey_Left,keys[SDLK_LEFT]);
Input_SetKey(InputKey_Right,keys[SDLK_RIGHT]);
Input_SetKey(InputKey_Jump,keys[SDLK_SPACE]);
Input_SetKey(InputKey_Continue,keys[SDLK_RETURN]|keys[SDLK_KP_ENTER]);
}
@@ -70,6 +72,21 @@ InputKeyStatus Input_GetKey(InputKey key){
}
/////////////////////////////
// Input_AnyKey
//
//
int Input_AnyKey(){
int i;
for(i=0;i<InputKey_Max;i++){
if(_keys[i]==InputKey_Pressed){
return(1);
}
}
return(0);
}
/////////////////////////////
// Input_GetDir
//