inputconvertbase.h 915 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef INPUTCONVERTBASE_H
  2. #define INPUTCONVERTBASE_H
  3. #include "common.h"
  4. #include "controlmsg.h"
  5. //#include "mirrordbus.h"
  6. //#include "generalplayer.h"
  7. struct TouchEvent;
  8. class Controller;
  9. class ControlMsg;
  10. class InputConvertBase
  11. {
  12. public:
  13. InputConvertBase(Controller* controller);
  14. virtual ~InputConvertBase();
  15. // the frame size may be different from the real device size, so we need the size
  16. // to which the absolute position apply, to scale it accordingly
  17. virtual void mouseEvent(const TouchEvent* from, const Size& frameSize, const Size& showSize) = 0;
  18. virtual void PhoneScreen(int& VideoWidth, int& VideoHeight, int ScreenWidth, int ScreenHeight) = 0;
  19. virtual void ValidRect(int VideoWidth, int VideoHeight, int ScreenWidth, int ScreenHeight) = 0;
  20. Controller *m_controller;
  21. protected:
  22. void sendControlMsg(ControlMsg* msg);
  23. private:
  24. };
  25. #endif // INPUTCONVERTBASE_H