PolyInputEvent.cpp 680 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * PolyInputEvent.cpp
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 3/28/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. #include "PolyInputEvent.h"
  10. namespace Polycode {
  11. InputEvent::InputEvent(Vector2 mousePosition, int timestamp) : Event() {
  12. this->mousePosition = mousePosition;
  13. this->timestamp = timestamp;
  14. eventType = "InputEvent";
  15. }
  16. InputEvent::InputEvent(TAUKey key, wchar_t charCode, int timestamp) : Event() {
  17. this->key = key;
  18. this->charCode = charCode;
  19. this->timestamp = timestamp;
  20. }
  21. /*
  22. InputEvent::InputEvent(TAUKey key, int timestamp) : Event() {
  23. this->key = key;
  24. this->timestamp = timestamp;
  25. }
  26. */
  27. InputEvent::~InputEvent() {
  28. }
  29. }