Module component.KeyEvent

Functions

KeyEvent:init (context, keyCode, unicodeKeyCode, mouseLocation, keysHeld, time) Initializes the KeyEvent object
KeyEvent:load (lib) Loads the KeyEvent class, automatically called when it's required by LoveUI


Functions

KeyEvent:init (context, keyCode, unicodeKeyCode, mouseLocation, keysHeld, time)
Initializes the KeyEvent object

Parameters

  • context: Context
  • keyCode: number
  • unicodeKeyCode: number
  • mouseLocation: table
  • keysHeld: table
  • time: number

Return value:

KeyEvent
KeyEvent:load (lib)
Loads the KeyEvent class, automatically called when it's required by LoveUI

Parameters

  • lib: table

Return value:

class

Valid XHTML 1.0!