Input (Module)

From Doomsday Wiki
Jump to: navigation, search

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!"')
Note: This function works the same way as the console command bindevent