Skip to content

Commit

Permalink
More docs
Browse files Browse the repository at this point in the history
  • Loading branch information
offalynne committed Oct 23, 2024
1 parent 340e8cb commit 962b0fa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/10.0/Plug-in-Gyro-Motion.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ This function returns a struct that describes the motion of a player's gamepad,
quatRoll: <number in radians indicating gamepad roll>,
quatPitch: <number in radians indicating gamepad pitch>,
quatYaw: <number in radians indicating gamepad yaw>,
quatYaw: <number in radians indicating gamepad yaw>
}
```

Expand Down
18 changes: 18 additions & 0 deletions docs/10.0/Plug-in-Trigger-Effects.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Adaptive trigger effects are available for the DualSense gamepad on the PlayStat
|`trigger` |integer |Trigger to set using GameMaker’s native constants (`gp_shoulderlb` or `gp_shoulderrb`)|
|`[playerIndex]`|integer |Player to target. If not specified, player 0 is used |

Sets effects off for the specified trigger

#### **Example**

```gml
Expand Down Expand Up @@ -63,6 +65,8 @@ if (game_over)
|`strength` |number |Strength of trigger effect, between 0 and 1 |
|`[playerIndex]`|integer |Player to target. If not specified, player 0 is used |

Sets a feedback for the specified trigger

#### **Example**

```gml
Expand Down Expand Up @@ -101,6 +105,8 @@ if ((in_sand == false) && instance_place(x, y, obj_sand))
|`frequency` |number |Frequency of trigger effect, between 0 and 1 |
|`[playerIndex]`|integer |Player to target. If not specified, player 0 is used |

Sets a weapon vibration effect for the specified trigger

#### **Example**

```gml
Expand Down Expand Up @@ -139,6 +145,8 @@ if ((using_gas == false) && InputCheck(INPUT_VERB.ACCELERATOR))
|`strength` |number |Strength of trigger effect, between 0 and 1 |
|`[playerIndex]`|integer |Player to target. If not specified, player 0 is used |

Sets a weapon effect for the specified trigger

#### **Example**

```gml
Expand Down Expand Up @@ -176,6 +184,8 @@ if ((using_pistol == false) && InputPressed(INPUT_VERB.EQUIP_PISTOL))
|`trigger` |integer |Trigger to set using GameMaker’s native constants (`gp_shoulderlb` or `gp_shoulderrb`)|
|`[playerIndex]`|integer |Player to target. If not specified, player 0 is used|

Gets the effect set for the specified trigger

#### **Example**

```gml
Expand Down Expand Up @@ -256,6 +266,8 @@ if ((game_paused == false) && InputPressed(INPUT_VERB.PAUSE))
|---------------|--------|----------------------------------------------------|
|`[playerIndex]`|integer |Player to target. If not specified, player 0 is used|

Gets the pause state for the specified trigger

#### **Example**

```gml
Expand Down Expand Up @@ -290,6 +302,8 @@ else
|`strength` |number |Overall strength for all trigger effects for the player |
|`[playerIndex]`|integer |Player to target. If not specified, player 0 is used |

Sets effect strength for the specified trigger

#### **Example**

```gml
Expand All @@ -315,6 +329,8 @@ InputTriggerEffectSetstrength(0.5);
|---------------|--------|----------------------------------------------------|
|`[playerIndex]`|integer |Player to target. If not specified, player 0 is used|
Gets effect strength for the specified trigger
#### **Example**
```gml
Expand All @@ -340,6 +356,8 @@ draw_text(x, y, "Trigger effect strength: ", string(InputTriggerEffectGetStrengt
|---------------|--------|----------------------------------------------------|
|`[playerIndex]`|integer |Player to target. If not specified, player 0 is used|

Returns whether the specified player's device supports trigger effects

#### **Example**

```gml
Expand Down

0 comments on commit 962b0fa

Please sign in to comment.