Deploying to Android TV, what buttons to control player?

Hi,  I’m just wondering if anyone has any suggestions as to what buttons to use to control a player using a remote control.  Ultimately they should be user delectable, but for now I am doing a quick test.

I have move, accelerate, shoot, secondary shoot and of course things to tap on.

Also, does Corona support AXIS_X, AXIS_Y, BUTTON_THUMBL  ?

Thanks, greg

Have you read our controller guides?

http://docs.coronalabs.com/guide/index.html

There are two: Game Controllers and MFi Controllers. The first one is the main guide. Your remote control probably should behave as an HID device and you get a combination of key events and axis events. You can set up a demo app that prints out the various event table values when you press each button or move an axis. The 2nd guide is more specific to some Apple additions. For the most part MFi controllers behave like HID controllers, but there are some quirks with the AppleTV remote and while it may not directly apply to Android TV remotes, some of the behaviors may be similar and you might learn more by reading the second guide.

Rob

Hi Rob,  

It’s all working great, I just need to know what the common buttons are on a remote to move left/right / accelerate / fire 1, fire 2.

but I can’t find my remote!!!

Greg

I know what you are saying. There isn’t a lot of guidance on regular controllers either. I pester my 20 something and 30 something-year-old sons on what buttons do what. 

What I’ve found is there isn’t a lot of consistency even with normal game controllers. Somethings like the up/down/left/right buttons can be obvious, but even things like “Fire/Attack” can vary between the right trigger and the A/X button.  I’ve been playing Fortnite a lot so I’m getting really biased by their use of keys.

The point is that you probably should figure out how your players are going to hold the controller to play the game (vertical one-handed or horizontal two-handed fashion. Find out what buttons feel natural to use for your actions.

Also consider having multiple buttons per function. For instance, in the game I’m working on, the primary weapon is on the right trigger, the A (Xbox), X (Playstation) buttons, the space bar, right shift and mouse click/screen touch.  For Up/Down (the only two ways the player can move in this game), W/S (from the WASD keyboard standard), Up/Down arrows, on the controllers both the Up/Down D-Pad controls and the left stick axis and touch controls. This lets the player use what’s comfortable to them.

Rob

Hi Rob,

I pester my kids for input too, but they run away :)     I have multiple button configuration wasd, and arrows, space and enter to shoot etc.

There are buttons on my remote arrangedlike gamepad buttons, but they are for volume +/-, home and return I think.  If I capture their input will their primary function still work (volume / home)?  I guess I have to try that one out.

I have my game working on android tv, but the controls feel awkward, not exactly what I would call rapid fire!   I’ll keep playing around, it is fun to have my game working on a tv!

Have you read our controller guides?

http://docs.coronalabs.com/guide/index.html

There are two: Game Controllers and MFi Controllers. The first one is the main guide. Your remote control probably should behave as an HID device and you get a combination of key events and axis events. You can set up a demo app that prints out the various event table values when you press each button or move an axis. The 2nd guide is more specific to some Apple additions. For the most part MFi controllers behave like HID controllers, but there are some quirks with the AppleTV remote and while it may not directly apply to Android TV remotes, some of the behaviors may be similar and you might learn more by reading the second guide.

Rob

Hi Rob,  

It’s all working great, I just need to know what the common buttons are on a remote to move left/right / accelerate / fire 1, fire 2.

but I can’t find my remote!!!

Greg

I know what you are saying. There isn’t a lot of guidance on regular controllers either. I pester my 20 something and 30 something-year-old sons on what buttons do what. 

What I’ve found is there isn’t a lot of consistency even with normal game controllers. Somethings like the up/down/left/right buttons can be obvious, but even things like “Fire/Attack” can vary between the right trigger and the A/X button.  I’ve been playing Fortnite a lot so I’m getting really biased by their use of keys.

The point is that you probably should figure out how your players are going to hold the controller to play the game (vertical one-handed or horizontal two-handed fashion. Find out what buttons feel natural to use for your actions.

Also consider having multiple buttons per function. For instance, in the game I’m working on, the primary weapon is on the right trigger, the A (Xbox), X (Playstation) buttons, the space bar, right shift and mouse click/screen touch.  For Up/Down (the only two ways the player can move in this game), W/S (from the WASD keyboard standard), Up/Down arrows, on the controllers both the Up/Down D-Pad controls and the left stick axis and touch controls. This lets the player use what’s comfortable to them.

Rob

Hi Rob,

I pester my kids for input too, but they run away :)     I have multiple button configuration wasd, and arrows, space and enter to shoot etc.

There are buttons on my remote arrangedlike gamepad buttons, but they are for volume +/-, home and return I think.  If I capture their input will their primary function still work (volume / home)?  I guess I have to try that one out.

I have my game working on android tv, but the controls feel awkward, not exactly what I would call rapid fire!   I’ll keep playing around, it is fun to have my game working on a tv!