GameMaker (2.3)
Icon

MaxLos' Input Script Pack

MaxLos

You must be logged in to obtain assets

Description

A script pack that contains many input device related scripts. It contains the following:

• gamepad_axis_check_flicked - Returns whether or not an axis on a gamepad was 'flicked' in a given direction. A 'flick' is defined as quickly moving the stick in a direction and back to neutral position within a given time.

• gamepad_axis_check_pushed - Returns whether or not an axis was pushed in a given direction. Works similarly to keyboard_check_pressed(), the script will only return true on the frame the player pushed the stick.

• gamepad_axis_check_rotated - Returns whether or not an axis on a gamepad was rotated within a given amount of time. You can check if the axis was rotated either clockwise or counter-clockwise.

• gamepad_axis_check_tilted - Returns whether or not a axis is being 'tilted' in a given direction. A tilt means the stick is not being fully pushed in the checked direction; you choose the maximum amount the player can push the stick before it should no longer be considered a tilt.

• gamepad_axis_raw_value - Returns the raw input value an axis is being pushed in. Used for getting the raw value after setting the deadzone of a gamepad slot with 'gamepad_set_axis_deadzone()'.

• gamepad_button_check_any - Returns whether or not any button on a gamepad is/was pressed or held. You can also check if any axis' are being pushed in any direction past their deadzone.

• gamepad_button_check_held - Returns whether or not a button on a gamepad was held for a given amount of time.

• gamepad_button_check_pressed_ext - Returns whether or not a button on a gamepad was pressed a given amount of times with a given amount of time.

• gamepad_check_inputs - Returns whether or not a list of inputs on a gamepad was made in order, within a given amount of time.

• keyboard_check_pressed_ext - Returns whether or not a key on a keyboard has been pressed a given amount of times within a given amount of time.

• keyboard_check_held - Returns whether or not a key on a keyboard has been held for a given amount of time.

• keyboard_check_inputs - Returns whether or not a list of keys on a keyboard was pressed in order, within a given amount of time.

• keyboard_check_multiple - Allows you to check whether or not multiple specific keys are being held down. It will only return true on the exact frame that all the checked for keys are held down.

• keyboard_check_pressed_ext - Allows you to check whether or not a specific key has been pressed a number of times within a given amount of time.

• keyboard_check_typeable_char - Returns whether or not a typeable character has been pressed or is being held (your choice), and returns that character as a string.

• display_mouse_get_x_speed - Returns the speed that the mouse cursor is moving at on the x-axis, relative to the display.

• display_mouse_get_y_speed - Returns the speed that the mouse cursor is moving at on the y-axis, relative to the display.

• make_gui_element_draggable - Makes a drawn gui element draggable with the mouse.

• make_self_draggable - Makes the calling instance draggable with the mouse.

• mouse_check_button_held - Returns whether or not a mouse button has been held for a given amount of time

• mouse_check_button_pressed_ext - Returns whether or not a mouse button has been pressed a given amount of times within a given amount of time.

• mouse_over_gui_element - Returns whether or not the mouse is hovering over a drawn gui element.

• mouse_over_instance - Returns whether or not the mouse is hovering over an instance or object.

• room_mouse_get_x_speed - Returns the speed that the mouse cursor is moving at on the x-axis, relative to the game room.

• room_mouse_get_y_speed - Returns the speed that the mouse cursor is moving at on the y-axis, relative to the game room.

• window_mouse_get_x_speed - Returns the speed that the mouse cursor is moving at on the x-axis, relative to the game window.

• window_mouse_get_y_speed - Returns the speed that the mouse cursor is moving at on the y-axis, relative to the game window.

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2.3 - Version 1.8.0. Published April 3, 2022

See included changelog file for list of changes.

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait