Changes

direct links
Line 5: Line 5:  
==Data structures==
 
==Data structures==
 
===SButton===
 
===SButton===
SMAPI's <tt>SButton</tt> constants unify the [https://msdn.microsoft.com/en-us/library/microsoft.xna.framework.input.buttons.aspx <tt>Buttons</tt>], [https://msdn.microsoft.com/en-us/library/microsoft.xna.framework.input.keys.aspx <tt>Keys</tt>], [https://msdn.microsoft.com/en-us/library/microsoft.xna.framework.input.mousestate.aspx <tt>MouseState</tt>], and <tt>InputButton</tt> constants. SMAPI events use this to let you handle controller, keyboard, and mouse input without needing separate code for each. See [[Modding:Key bindings]] for a list of values.
+
SMAPI's <tt>SButton</tt> constants unify the [https://msdn.microsoft.com/en-us/library/microsoft.xna.framework.input.buttons.aspx <tt>Buttons</tt>], [https://msdn.microsoft.com/en-us/library/microsoft.xna.framework.input.keys.aspx <tt>Keys</tt>], [https://msdn.microsoft.com/en-us/library/microsoft.xna.framework.input.mousestate.aspx <tt>MouseState</tt>], and <tt>InputButton</tt> constants. SMAPI events use this to let you handle controller, keyboard, and mouse input without needing separate code for each. See [[Modding:Player Guide/Key Bindings]] for a list of values.
    
SMAPI provides extensions to convert any of the other constants to <tt>SButton</tt>:
 
SMAPI provides extensions to convert any of the other constants to <tt>SButton</tt>:
Line 98: Line 98:  
==See also==
 
==See also==
 
* [[../Events#Input|Input events]]
 
* [[../Events#Input|Input events]]
* [[Modding:Key bindings]] for a list of valid <tt>SButton</tt> values
+
* [[Modding:Player Guide/Key Bindings]] for a list of valid <tt>SButton</tt> values
    
{{modding guide footer
 
{{modding guide footer
106,338

edits