Skip to content

Commit

Permalink
Update Main.gd
Browse files Browse the repository at this point in the history
  • Loading branch information
trevyn committed Jun 20, 2024
1 parent e07d01d commit 835b566
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func _ready() -> void:
$Button.connect("pressed", Callable(self, "_on_button_pressed"))
$SubViewportContainer/Label.text = "bananas: " + str(bananas)


#var timer = Timer.new()
#timer.wait_time = 1.0 # Set wait time to 2 seconds
#timer.one_shot = false
Expand Down Expand Up @@ -50,7 +51,7 @@ func _on_button_2_pressed() -> void:
$SteamStatus.text=str(Steam.getConnectedControllers()) + " " + str(Steam.getInputTypeForHandle(Steam.getControllerForGamepadIndex(0)))


Steam.triggerRepeatedHapticPulse(controller, 0, 50000,50000,10,0)
Steam.triggerRepeatedHapticPulse(Steam.INPUT_HANDLE_ALL_CONTROLLERS, 0, 50000,50000,10,0)
#var device := 0 # The joystick device index, change as needed
#var weak_magnitude := float($Weak.text) # Weak vibration strength (0 to 1)
#var strong_magnitude := float($Strong.text) # Strong vibration strength (0 to 1)
Expand Down

0 comments on commit 835b566

Please sign in to comment.