Changes

Jump to navigation Jump to search
→‎SButton: tweak intro for readability
Line 83: Line 83:  
==Data structures==
 
==Data structures==
 
===SButton===
 
===SButton===
SMAPI's <tt>SButton</tt> constants unify the [https://docs.microsoft.com/en-us/previous-versions/windows/xna/bb975202(v%3dxnagamestudio.40) <tt>Buttons</tt>], [https://docs.microsoft.com/en-us/previous-versions/windows/xna/bb197781(v%3dxnagamestudio.40) <tt>Keys</tt>], [https://docs.microsoft.com/en-us/previous-versions/windows/xna/bb198097(v%3dxnagamestudio.40) <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's <tt>SButton</tt> is a constant which includes every [https://docs.microsoft.com/en-us/previous-versions/windows/xna/bb975202(v%3dxnagamestudio.40) controller], [https://docs.microsoft.com/en-us/previous-versions/windows/xna/bb197781(v%3dxnagamestudio.40) keyboard], and [https://docs.microsoft.com/en-us/previous-versions/windows/xna/bb198097(v%3dxnagamestudio.40) mouse] button. SMAPI events use this to let you handle button presses 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>:
translators
8,404

edits

Navigation menu