Line 266: |
Line 266: |
| ! event | | ! event |
| ! summary | | ! summary |
| + | {{/event |
| + | |group = Input |
| + | |name = ButtonsChanged |
| + | |desc = {{SMAPI upcoming|3.9}} Raised after the player pressed/released any buttons on the keyboard, mouse, or controller. This includes mouse clicks. If the player pressed/released multiple keys at once, this is only raised once. |
| + | |
| + | |arg name 1 = <tt>e.Pressed</tt> |
| + | |arg type 1 = [[Modding:Modder Guide/APIs/Input#SButton|<tt>SButton[]</tt>]] |
| + | |arg desc 1 = The buttons that were pressed since the previous tick. |
| + | |
| + | |arg name 2 = <tt>e.Held</tt> |
| + | |arg type 2 = [[Modding:Modder Guide/APIs/Input#SButton|<tt>SButton[]</tt>]] |
| + | |arg desc 2 = The buttons that were held since the previous tick. |
| + | |
| + | |arg name 3 = <tt>e.Released</tt> |
| + | |arg type 3 = [[Modding:Modder Guide/APIs/Input#SButton|<tt>SButton[]</tt>]] |
| + | |arg desc 3 = The buttons that were released since the previous tick. |
| + | |
| + | |arg name 4 = <tt>e.Cursor</tt> |
| + | |arg type 4 = [[Modding:Modder Guide/APIs/Input#Check cursor position|<tt>ICursorPosition</tt>]] |
| + | |arg desc 4 = The cursor position and grab tile. |
| + | |
| + | '''Note:''' mods won't receive input sent to the chatbox. |
| + | }} |
| {{/event | | {{/event |
| |group = Input | | |group = Input |
| |name = ButtonPressed, ButtonReleased | | |name = ButtonPressed, ButtonReleased |
− | |desc = Raised after the player pressed/released a keyboard, mouse, or controller button. This includes mouse clicks. | + | |desc = Raised after the player pressed/released a keyboard, mouse, or controller button. This includes mouse clicks. If the player pressed/released multiple keys at once, this is raised for each button pressed. |
| | | |
| |arg name 1 = <tt>e.Button</tt> | | |arg name 1 = <tt>e.Button</tt> |