User Tools

Site Tools


script:module:input

This is an old revision of the document!


Input (Module)

Module that provides access to the input subsystem.

Functions

bindEvent ( eventSpec : Text, command : Text )

Creates an event_binding for the provided event. Whenever the event is received, the specified command will be executed. Returns True or False to indicate successful creation of the binding.

Input.bindEvent("key-k-down", 'echo "K was pressed!"')
This function works the same way as the console command bindevent.
script/module/input.1574019840.txt.gz · Last modified: 2019-11-17 21:44 by skyjake