Home

Awesome

features

example

In the example project I've set up the controls for player 1 in the InputForPlayer1 object:

inputdog_add_input("left",   vk_left,    inputdog_gp_left_stick_left);
inputdog_add_input("right",  vk_right,   inputdog_gp_left_stick_right);
inputdog_add_input("bark",   ord("N"),   gp_face3);
inputdog_add_input("growl",  ord("M"),   gp_face1);

Here's the Step Event for player 1's character:

if inputdog_down("left", playerSlot) x-= 3;
if inputdog_down("right", playerSlot) x+= 3;

if inputdog_pressed("bark",playerSlot)
    sprite_index = sDogBark;

if inputdog_pressed("growl", playerSlot) 
    inputdog_set_rumble(0.5, playerSlot);