Skip to content

Commit

Permalink
Add InputTriggerEffectGetSupported
Browse files Browse the repository at this point in the history
  • Loading branch information
offalynne committed Oct 21, 2024
1 parent e10f2f8 commit 251ca62
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/10.0/Plug-in-Trigger-Effects.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,4 +302,29 @@ InputTriggerEffectSetstrength(0.5);
draw_text(x, y, "Trigger effect strength: ", string(InputTriggerEffectGetStrength()));
```

<!-- tabs:end -->

&nbsp;

## …TriggerEffectGetSupported

`InputTriggerEffectGetSupported([playerIndex])`

<!-- tabs:start -->

#### **Description**

**Returns:** Boolean, whether trigger effects are supported for the device assigned to a player

|Name |Datatype|Purpose |
|---------------|--------|----------------------------------------------------|
|`[playerIndex]`|integer |Player to target. If not specified, player 0 is used|

#### **Example**

```gml
//Draw gamepad trigger effect availability
draw_text(x, y, "Trigger effect support: ", string(InputTriggerEffectGetSupported()));
```
<!-- tabs:end -->

0 comments on commit 251ca62

Please sign in to comment.