Changes

Jump to navigation Jump to search
update for SMAPI 2.6 release
Line 1: Line 1:  
{{../../header}}
 
{{../../header}}
{{SMAPI upcoming|2.6-beta.16}}
      
The input API lets you check and suppress controller/keyboard/mouse state.
 
The input API lets you check and suppress controller/keyboard/mouse state.
Line 52: Line 51:     
===ICursorPosition===
 
===ICursorPosition===
SMAPI's <tt>ICursorPosition</tt> provides the cursor position in three coordinate systems:
+
SMAPI's <tt>ICursorPosition</tt> provides the cursor position in four coordinate systems:
 +
* <tt>AbsolutePixels</tt> is the pixel position relative to the top-left corner of the in-game map.
 
* <tt>ScreenPixels</tt> is the pixel position relative to the top-left corner of the visible screen, adjusted for game zoom.
 
* <tt>ScreenPixels</tt> is the pixel position relative to the top-left corner of the visible screen, adjusted for game zoom.
 
* <tt>Tile</tt> is the [[Modding:Modder Guide/Game Fundamentals#Tiles|tile position]] under the cursor.
 
* <tt>Tile</tt> is the [[Modding:Modder Guide/Game Fundamentals#Tiles|tile position]] under the cursor.
Line 59: Line 59:  
This is returned by the <tt>this.Helper.Input.GetCursorPosition()</tt> method and in the event args for some input events.
 
This is returned by the <tt>this.Helper.Input.GetCursorPosition()</tt> method and in the event args for some input events.
   −
{{SMAPI upcoming|2.6|content=<tt>AbsolutePixels</tt> is the pixel position relative to the top-left corner of the in-game map.}}
      
==APIs==
 
==APIs==
translators
8,404

edits

Navigation menu