Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

joypad.h

Go to the documentation of this file.
00001 /*
00002  *  JoyPad.h - Pen base Joystick driver
00003  *
00004  *  (c) 1999-2001 Alfred E. Heggestad & Jal Panvel
00005  */
00006 
00007 
00008 #ifndef JOYPAD_H__
00009 #define JOYPAD_H__
00010 
00011 #include <e32base.h>
00012 
00013 enum TJoyPadState
00014         {
00015         EJoyPadUp     = 0xfe,
00016         EJoyPadDown   = 0xfd,
00017         EJoyPadLeft   = 0xfb,
00018         EJoyPadRight  = 0xf7,
00019 
00020         EJoyPadUpLeft    = EJoyPadUp   & EJoyPadLeft,
00021         EJoyPadUpRight   = EJoyPadUp   & EJoyPadRight,
00022         EJoyPadDownLeft  = EJoyPadDown & EJoyPadLeft,
00023         EJoyPadDownRight = EJoyPadDown & EJoyPadRight,
00024 
00025         EJoyPadDefault = 0xff
00026         };
00027 
00028 enum TJoyPadButtonState
00029         {
00030         EJoyPadButtonDown = 0xef,
00031         EJoyPadButtonUp   = 0x10
00032         };
00033 
00034 class CJoyPadObserver : public CBase
00035         {
00036 public:
00037         CJoyPadObserver();
00038         TInt GetJoyPadState();
00039         void SetJoyPadState(TJoyPadState aJoyPadState);
00040         void SetJoyPadButtonState(TJoyPadButtonState aJoyPadButtonState);
00041 private:
00042         TInt iJoyPadState;
00043         };
00044 
00045 #endif // __JOYPAD_H__
00046 

Generated on Tue Feb 8 04:07:57 2005 for E32frodo by doxygen 1.3.3