playerzero-
Here is the link and example below:
https://github.com/mickelson/attract/blob/v1.5.0/Layouts.mdfe.get_input_state( input_id )
Check if a specific keyboard key, mouse button, joystick button or joystick direction is currently pressed, or check if any input mapped to a particular frontend action is pressed.
Parameter:
input_id - [string] the input to test. This can be a string in the same format as used in the attract.cfg file for input mappings. For example, "LControl" will check the left control key, "Joy0 Up" will check the up direction on the first joystick, "Mouse MiddleButton" will check the middle mouse button, and "select" will check for any input mapped to the game select button...
Note that mouse moves and mouse wheel movements are not available through this function.
Return Value:
true if input is pressed, false otherwise.
fe.get_input_pos()
fe.get_input_pos( input_id )
Return the current position for the specified joystick axis.
Parameter:
input_id - [string] the input to test. The format of this string is the same as that used in the attract.cfg file. For example, "Joy0 Up" is the up direction on the first joystick.
Return Value:
Current position of the specified axis, in range [0..100].
fe.signal()
fe.signal( signal_str )
Signal that a particular frontend action should occur.
Parameters:
signal_str - the action to signal for. Can be one of the following strings:
"select"
"up"
"down"
"page_up"
"page_down"
"prev_list"
"next_list"
"lists_menu"
"prev_filter"
"next_filter"
"filters_menu"
"toggle_layout"
"toggle_movie"
"toggle_mute"
"toggle_rotate_right"
"toggle_flip"
"toggle_rotate_left"
"exit"
"exit_no_menu"
"screenshot"
"configure"
"random_game"
"replay_last_game"
"add_favourite"
"prev_favourite"
"next_favourite"
"add_tags"
"screen_saver"
"prev_letter"
"next_letter"
"reset_window"
Return Value:
None.