🖱ī¸Input Functions

These are all of the functions revolving inputs that Wave supports.

Keyboard:

<void> keypress(<uint> keycode)  
  • Simulates a key press for the specified keycode. You can find a list of codes here.

<void> keyrelease(<uint> key)  
  • Releases key on the keyboard.


Left Click:

<void> mouse1click(<void>)  
  • Simulates a full left mouse button press.

<void> mouse1press(<void>)  
  • Simulates a left mouse button press without releasing it.

<void> mouse1release(<void>)  
  • Simulates a left mouse button release.


Right Click:

<void> mouse2click(<void>)
  • Simulates a full right mouse button press.

<void> mouse2press(<void>)  
  • Clicks down on the right mouse button.

<void> mouse2release(<void>)  
  • Simulates a right mouse button release.


Mouse Movement:

<void> mousescroll(<number> number)  
  • Scrolls the mouse wheel virtually by number pixels.

<void> mousemoverel(<number> a1, <number> a2)  
  • Moves the mouse cursor relatively to the current mouse position by coordinates a1 and a2.

<void> mousemoveabs(<number> a1, <number> a2)  
  • Move's your mouse to the a1 and a2 coordinates in pixels from top left of the window.

Last updated