Advertisement
Gemini

control.h

Jun 8th, 2011
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.78 KB | None | 0 0
  1. /* ---------------------------------------------------------------------------
  2.  * - (C) Sony Computer Entertainment. All Rights Reserved.
  3.  * -
  4.  * - Project:   Movie Player V2.0  
  5.  * -
  6.  * - Name:      control.h
  7.  * -
  8.  * - Author:    Vince Diesi
  9.  * -
  10.  * - Date:      13th Feb 1997
  11.  * ---------------------------------------------------------------------------
  12.  */
  13.  
  14. #ifndef __CONTROL_H
  15. #define __CONTROL_H
  16.  
  17. #include "ctrller.h"
  18.  
  19. /* ---------------------------------------------------------------------------
  20.  * - MACRO DEFINITIONS
  21.  * ---------------------------------------------------------------------------
  22.  */
  23.  
  24. // Check controllers every second.
  25. #define CHECK_CONTROLLERS       50
  26.  
  27.  
  28. // New (more meaningful) controller button names.
  29. #define R2_KEY          PAD_FRB
  30. #define L2_KEY          PAD_FLB
  31. #define R1_KEY          PAD_FRT
  32. #define L1_KEY          PAD_FLT
  33. #define TRIANGLE_KEY    PAD_RU
  34. #define X_KEY           PAD_RD
  35. #define SQUARE_KEY      PAD_RL
  36. #define CIRCLE_KEY      PAD_RR
  37. #define UP_KEY          PAD_LU
  38. #define DOWN_KEY        PAD_LD
  39. #define LEFT_KEY        PAD_LL
  40. #define RIGHT_KEY       PAD_LR
  41. #define SELECT_KEY      PAD_SEL
  42. #define START_KEY       PAD_START
  43.  
  44. /* ---------------------------------------------------------------------------
  45.  * - PUBLIC FUNCTION PROTOTYPES
  46.  * ---------------------------------------------------------------------------
  47.  */
  48.  
  49. void InitControllers(void);
  50.  
  51. /* ------------------------------------------------------------------------ */
  52.  
  53. void StopControllers(void);
  54.  
  55. /* ------------------------------------------------------------------------ */
  56.  
  57. void CheckControllers(void);
  58.  
  59. /* ------------------------------------------------------------------------ */
  60.  
  61. short Pressed(short button);
  62. unsigned short GetPadValue();
  63.  
  64. /* ------------------------------------------------------------------------ */
  65.  
  66. #endif // __CONTROL_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement