
|
Function
|
Description
|
|
Returns the elapsed time in milliseconds between main iterations
| |
|
Returns the active slot number
| |
|
Loads a specified slot
| |
|
Returns the identifier of the controller button
| |
|
Sets the vm timeout for the next iteration
|
|
load_slot will attempt to load the slot number specified within its parameter. If there is no script current stored in the specified slot, then it will unload the current slot and load slot 0.
Example of usage:
Syntaxload_slot ( <slot_number> );
Parameters
| |||
|
get_ctrlbutton returns the current control button.
The control button is set in the Device tab within Cronus PRO's Options window. The enable remote control of slow switch on device dictates which button it is set to
![]() If enable remote control is disabled, then the control button is 0 (The Xbox / Guide / PS button)
If enable remote control is enabled and G8 Alternate is disabled, then the control button is 1 (Back / View / Select / Share)
If both remote control and G8 Alternate are enabled, then the control button is 8 (LS / L3)
Syntaxget_ctrlbutton ( );
Parameters
Returns0, 1 or 8 depending on the Remote slot settings in device options
| ||
|
vm_tctrl sets the virtual machine timeout for the next iteration. By default, the virtual machine runs the main loop every 10 milliseconds as it aids stability. You can however adjust how often each main iteration is run. Just be aware than changing this setting may cause instability within your script.
Example of usage:
Syntaxvm_tctrl ( <Value> );
Parameters
| |||