Changes

Jump to navigation Jump to search
→‎How to…: + use key bindings on Android
Line 3: Line 3:  
Some mods let you edit key bindings, which are controller/keyboard/mouse buttons which do something in-game. This page explains how to configure them.
 
Some mods let you edit key bindings, which are controller/keyboard/mouse buttons which do something in-game. This page explains how to configure them.
   −
==How to configure a mod's bindings==
+
==How to…==
 +
===Configure a mod's bindings===
 
# Install the mod ([[Modding:Player Guide/Getting Started|see help]]).
 
# Install the mod ([[Modding:Player Guide/Getting Started|see help]]).
 
# Run SMAPI at least once with the mod to let it generate its config file.
 
# Run SMAPI at least once with the mod to let it generate its config file.
Line 10: Line 11:     
Note that some mods may not be configurable.
 
Note that some mods may not be configurable.
 +
 +
===Disable a mod's key binding===
 +
For mods using SMAPI 2.0+ features, you can use <tt>None</tt> to disable a key binding.
 +
 +
===Use key bindings on Android===
 +
You can [[#Mobile|bind physical mobile buttons]], but there aren't many available. [[Modding:Installing SMAPI on Android|SMAPI on Android]] includes a Virtual Keyboard mod which lets you add on-screen buttons you can tap to send keyboard input to your installed mods.
 +
 +
To use the virtual keyboard:
 +
# In-game, a keyboard icon should appear in the top-left corner of the screen.
 +
# Tap the keyboard icon to show the configured buttons.
 +
# Tap the button to send.
 +
 +
To add a new key:
 +
# Run the game once to generate the default <tt>config.json</tt> file.
 +
# Open the <tt>Mods/VirtualKeyboard/config.json</tt> file in a text editor.
 +
# Add new buttons to the <tt>buttons</tt> field in the same format.<br />''Tip: when you add a button, set its <tt>X</tt> value to the previous button + 96.''
    
==Reserved bindings==
 
==Reserved bindings==
Line 371: Line 388:  
| The volume up/down buttons.
 
| The volume up/down buttons.
 
|}
 
|}
  −
==Disable a key binding==
  −
For mods using SMAPI 2.0+ features, you can use <tt>None</tt> to disable a key binding.
      
==For modders==
 
==For modders==
translators
8,403

edits

Navigation menu