Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Modding:Modder Guide/APIs/Input
(view source)
Revision as of 17:03, 3 August 2018
61 bytes removed
,
17:03, 3 August 2018
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==
Pathoschild
translators
8,404
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Modding
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version