S
Sam (Deleted User)
Guest
I'm trying to port a game of mine to OUYA, and I have a cursor object I'd like to move with the left analog stick.
Here's the step event for my cursor object:
From the docs (link):
But I tried using the left analog stick to move the cursor object, and nothing happens.
What am I doing wrong?
Thanks!
Samuel
Here's the step event for my cursor object:
Code:
if (gamepad_is_connected(0)) {
gamepad_set_axis_deadzone(0, 0.05);
var haxis = gamepad_axis_value(0, gp_axislh);
var vaxis = gamepad_axis_value(0, gp_axislv);
direction = point_direction(0, 0, haxis, vaxis);
speed = point_distance(0 ,0, haxis, vaxis) * 5;
}
I have API level 12 installed, and I have the GGS checkbox for iCade/Bluetooth checked under Android settings.Android export supports NYKO controllers and generic Bluetooth controllers (including the OUYA), but only when they are enabled, meaning that you will have to tick the iCade/Bluetooth option in the Android Tab of the Global Game Settings. They require API level 12 for them to work fully and it should be noted that GameMaker: Studio will register as connected any Bluetooth devices that your device is paired with, whether or not it’s actually connected. Therefore this should be taken into account when assigning and checking "slots".
But I tried using the left analog stick to move the cursor object, and nothing happens.
What am I doing wrong?
Thanks!
Samuel