Changes

Jump to navigation Jump to search
ZH link
Line 48: Line 48:     
===Check cursor position===
 
===Check cursor position===
The <samp>GetCursorPosition()</samp> method provides the [[#ICursorPosition|cursor position in three coordinate systems|ICursorPosition]].
+
The <samp>GetCursorPosition()</samp> method provides the [[#ICursorPosition|cursor position in three coordinate systems]].
    
For example:
 
For example:
Line 143: Line 143:  
class ModConfig
 
class ModConfig
 
{
 
{
   public KeybindList ToggleKey { get; set; } = KeybindList.Parse("Shift + F2");
+
   public KeybindList ToggleKey { get; set; } = KeybindList.Parse("LeftShift + F2");
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 149: Line 149:  
| <syntaxhighlight lang="json">
 
| <syntaxhighlight lang="json">
 
{
 
{
   "ToggleKey": "Shift + F2"
+
   "ToggleKey": "LeftShift + F2"
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 215: Line 215:  
* [[../Events#Input|Input events]]
 
* [[../Events#Input|Input events]]
 
* [[Modding:Player Guide/Key Bindings]] for a list of valid <samp>SButton</samp> values
 
* [[Modding:Player Guide/Key Bindings]] for a list of valid <samp>SButton</samp> values
 +
 +
[[zh:模组:制作指南/APIs/Input]]
106,342

edits

Navigation menu