Description

InputMan is a simple and easy to use script to map your keyboard and controllers for upto 4 players.

Example of how to use iman_add

iman_add("left", player_id,ord("A"), IMAN_LEFT_STICK_LEFT);
iman_add("right", player_id,ord("D"), IMAN_LEFT_STICK_RIGHT);
iman_add("jump", player_id, vk_space, IMAN_BTN_A);
iman_add("fire", player_id,vk_lcontrol, IMAN_BTN_X);

Now check if the key is down or pressed

move_left = iman_down("left", player_id);
move_right = iman_down("right", player_id);
jump = iman_pressed("jump", player_id);
jump_held = iman_down("jump", player_id);
fire = iman_pressed("fire", player_id);
fire_held = iman_down("fire", player_id);

player_id here is 0 to 3 - mapped to four constants for ease of use - IMAN_P1, IMAN_P2, IMAN_P3, IMAN_P4

Apart from these 4 core functions, there are over 70 functions which let you directly access states and values of each button on the gamepad both analog and digital. Please check the attached pdf for full documentation.

End User Licence Agreement (EULA).

Changes in 1.0.1

  • You can now use Gamemaker gamepad constants gp_* when registering keys using iman_add
  • Documentation reflects new changes and lists all usable constants and variables
  • Added an extra sprite for InputMan which will be visible in edit mode
  • Fixed a bug with gp_used

Version 1.0.1. Published March 25, 2016

Created with GameMaker: Studio v1.4.1749

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.

No reviews yet

No reviews have been left for this asset - be the first!

Package contents

Total size 393 KB

InputMan.extension.gmx 7.68 KB InputMan
Assets
Backgrounds datafiles Objects Rooms Scripts
gp_button_a.gml 117 Bytes gp_button_a_pressed.gml 136 Bytes gp_button_a_released.gml 140 Bytes gp_button_b.gml 122 Bytes gp_button_b_pressed.gml 136 Bytes gp_button_b_released.gml 139 Bytes gp_button_select.gml 133 Bytes gp_button_select_pressed.gml 147 Bytes gp_button_select_released.gml 150 Bytes gp_button_shoulder_left.gml 147 Bytes gp_button_shoulder_left_pressed.gml 159 Bytes gp_button_shoulder_left_released.gml 167 Bytes gp_button_shoulder_right.gml 152 Bytes gp_button_shoulder_right_pressed.gml 166 Bytes gp_button_shoulder_right_released.gml 169 Bytes gp_button_start.gml 123 Bytes gp_button_start_pressed.gml 137 Bytes gp_button_start_released.gml 141 Bytes gp_button_stick_left.gml 129 Bytes gp_button_stick_left_pressed.gml 143 Bytes gp_button_stick_left_released.gml 146 Bytes gp_button_stick_right.gml 137 Bytes gp_button_stick_right_pressed.gml 158 Bytes gp_button_stick_right_released.gml 161 Bytes gp_button_trigger_left.gml 143 Bytes gp_button_trigger_left_pressed.gml 157 Bytes gp_button_trigger_left_released.gml 160 Bytes gp_button_trigger_right.gml 145 Bytes gp_button_trigger_right_pressed.gml 159 Bytes gp_button_trigger_right_released.gml 162 Bytes gp_button_x.gml 116 Bytes gp_button_x_pressed.gml 130 Bytes gp_button_x_released.gml 133 Bytes gp_button_y.gml 116 Bytes gp_button_y_pressed.gml 130 Bytes gp_button_y_released.gml 133 Bytes gp_down.gml 1.69 KB gp_init.gml 132 Bytes gp_inputManager_init.gml 3 KB gp_inputManager_system.gml 655 Bytes gp_left_stick_direction.gml 302 Bytes gp_left_stick_distance.gml 298 Bytes gp_left_stick_down.gml 217 Bytes gp_left_stick_left.gml 214 Bytes gp_left_stick_moved.gml 217 Bytes gp_left_stick_right.gml 216 Bytes gp_left_stick_up.gml 213 Bytes gp_left_stick_x.gml 141 Bytes gp_left_stick_y.gml 141 Bytes gp_pad_down.gml 122 Bytes gp_pad_down_pressed.gml 137 Bytes gp_pad_down_released.gml 140 Bytes gp_pad_left.gml 123 Bytes gp_pad_left_pressed.gml 137 Bytes gp_pad_left_released.gml 140 Bytes gp_pad_right.gml 125 Bytes gp_pad_right_pressed.gml 139 Bytes gp_pad_right_released.gml 142 Bytes gp_pad_up.gml 119 Bytes gp_pad_up_pressed.gml 133 Bytes gp_pad_up_released.gml 136 Bytes gp_pressed.gml 1.27 KB gp_released.gml 1.29 KB gp_right_stick_direction.gml 305 Bytes gp_right_stick_distance.gml 300 Bytes gp_right_stick_down.gml 219 Bytes gp_right_stick_left.gml 216 Bytes gp_right_stick_moved.gml 225 Bytes gp_right_stick_right.gml 218 Bytes gp_right_stick_up.gml 215 Bytes gp_right_stick_x.gml 143 Bytes gp_right_stick_y.gml 143 Bytes gp_trigger_left_value.gml 153 Bytes gp_trigger_right_value.gml 155 Bytes gp_used.gml 173 Bytes gp_vibration_start.gml 425 Bytes gp_vibration_stop.gml 120 Bytes iman_add.gml 264 Bytes iman_down.gml 415 Bytes iman_pressed.gml 405 Bytes iman_released.gml 409 Bytes
Sprites

What is the issue?

Back to Top