/* KallistiOS ##version##                                                                                                     
                                                                                                                              
   gba/keys.h                                                                                                                 
   (c)2001 Dan Potter                                                                                                         
                                                                                                                              
   $Id: keys.h,v 1.1.1.1 2001/09/26 07:05:11 bardtx Exp $                                                                                                                       
*/                                                                                                                            
                                                                                                                              
/* Thanks to Dovoto's tutorial for these numbers */                                                                           
                                                                                                                              
#ifndef __GBA_KEYS_H                                                                                                          
#define __GBA_KEYS_H                                                                                                          
                                                                                                                              
#include <arch/types.h>                                                                                                       
                                                                                                                              
/* Key input register */                                                                                                      
#define REG_KEYS        (*(vu32*)0x04000130)                                                                                  
                                                                                                                              
#define KEY_A           0x0001                                                                                                
#define KEY_B           0x0002                                                                                                
#define KEY_SELECT      0x0004                                                                                                
#define KEY_START       0x0008                                                                                                
#define KEY_RIGHT       0x0010                                                                                                
#define KEY_LEFT        0x0020                                                                                                
#define KEY_UP          0x0040                                                                                                
#define KEY_DOWN        0x0080                                                                                                
#define KEY_R           0x0100                                                                                                
#define KEY_L           0x0200                                                                                                
                                                                                                                              
#endif	/* __GBA_KEYS_H */
