InputEvent.lua 292 B

1234567891011121314
  1. require "Polycode/Event"
  2. class "InputEvent" (Event)
  3. function InputEvent:InputEvent(mousePosition, timestamp)
  4. if self.__ptr == nil then
  5. self.__ptr = Polycore.InputEvent(mousePosition, timestamp)
  6. end
  7. end
  8. function InputEvent:keyCode()
  9. return Polycore.InputEvent_keyCode(self.__ptr)
  10. end