Changes

Jump to navigation Jump to search
→‎Suppress input: + SuppressActiveKeybinds in SMAPI 3.9
Line 59: Line 59:  
===Suppress input===
 
===Suppress input===
 
You can prevent the game from handling any [[#SButton|controller/keyboard/mouse button press]] (including clicks) by ''suppressing'' it. This suppression will remain in effect until the player releases the button. This won't prevent other mods from handling it.
 
You can prevent the game from handling any [[#SButton|controller/keyboard/mouse button press]] (including clicks) by ''suppressing'' it. This suppression will remain in effect until the player releases the button. This won't prevent other mods from handling it.
 +
 +
{| class="wikitable"
 +
|-
 +
! method
 +
! effect
 +
|-
 +
| <code>Suppress</code>
 +
| Suppress the specified [[#SButton|<tt>SButton</tt>]] value.
 +
|-
 +
| <code>SuppressActiveKeybinds</code>
 +
| For the given [[#KeybindList|<tt>KeybindList</tt>]], suppress every button that's part of an activated keybind.
 +
|-
 +
| <code>IsSuppressed</code>
 +
| Get whether the specified [[#SButton|<tt>SButton</tt>]] value is currently suppressed.
 +
|}
    
For example:
 
For example:
translators
8,437

edits

Navigation menu