
Button 1 Text Gamepad
Button Gamepad Color Orange
Button Gamepad Slot Slot_GamepadStartStop

Load Theremino_HAL\theremino_SlotViewer.exe

Slot_GamepadStartStop = 220

Stop


' ===================================================================
'  GAMEPAD
' ===================================================================
Variable Numeric Slot_GamepadStartStop
Variable Numeric Gamepad_V1
Variable Numeric Gamepad_Running

Label Gamepad
	' --------------------------------------- Gamepad Start/Stop
	If Gamepad_Running = 1
		Gamepad_Running = 0
		Return
	Else
		Gamepad_Running = 1
	EndIf
	' --------------------------------------- Gamepad Initializations
	Button Gamepad Color Green9
	Button Gamepad Text "Gamepad RUNNING"
	
	' --------------------------------------- Gamepad Execution
	For Gamepad_V1 = 1 To 9e99
		
		' -----------------------------------
		Wait Seconds 0.01
		If Gamepad_Running = 0
			Exit
		EndIf
	Next
	' --------------------------------------- Gamepad Finalizations
	Button Gamepad Text Gamepad
	Button Gamepad Color Orange
Return


'WATCH New watch
'WATCH Language
'EXEC ExitFromSequenceLoop = 1
