bbinput.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef BBINPUT_H
  2. #define BBINPUT_H
  3. #include <vector>
  4. #include "bbsys.h"
  5. #include "../gxruntime/gxinput.h"
  6. extern gxInput *gx_input;
  7. extern gxDevice *gx_mouse;
  8. extern gxDevice *gx_keyboard;
  9. extern std::vector<gxDevice*> gx_joysticks;
  10. //keyboard
  11. int bbKeyDown( int n );
  12. int bbKeyHit( int n );
  13. int bbGetKey();
  14. int bbWaitKey();
  15. void bbFlushKeys();
  16. //mouse
  17. int bbMouseDown( int n );
  18. int bbMouseHit( int n );
  19. int bbGetMouse();
  20. int bbWaitMouse();
  21. int bbMouseX();
  22. int bbMouseY();
  23. int bbMouseXSpeed();
  24. int bbMouseYSpeed();
  25. void bbMoveMouse( int x,int y );
  26. void bbFlushMouse();
  27. //joysticks
  28. int bbJoyType( int port );
  29. int bbJoyDown( int n,int port );
  30. int bbJoyHit( int n,int port );
  31. int bbGetJoy( int port );
  32. int bbWaitJoy( int port );
  33. float bbJoyX( int port );
  34. float bbJoyY( int port );
  35. float bbJoyZ( int port );
  36. float bbJoyU( int port );
  37. float bbJoyV( int port );
  38. float bbJoyPitch( int port );
  39. float bbJoyYaw( int port );
  40. float bbJoyRoll( int port );
  41. int bbJoyXDir( int port );
  42. int bbJoyYDir( int port );
  43. int bbJoyZDir( int port );
  44. int bbJoyUDir( int port );
  45. int bbJoyVDir( int port );
  46. void bbFlushJoy();
  47. #endif