Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

TIC-80

Fantasy computer for making, playing and sharing tiny games. · By Nesbox

Controller config

A topic by DanielBzD created Jan 22, 2018 Views: 2,141 Replies: 2
Viewing posts 1 to 3

So, I was running this controller test, with my actual controller, and the buttons are all in the wrong place. Is there any way to configure this?

I know it's not in the game menu. The game menu lets you change how the gamepad maps to the keyboard, and I want to change how the gamepad maps to... the gamepad! Also, the game menu (pressing Esc) only shows in an exported game.

My guess is it has something to do with the config file, as there is a gamepad thingie there, but I can't find any docs.

Sorry if someone has posted this already, it seems there's no way to search old threads.

Developer

Hi, unfortunately it's not implemented yet, but we have opened issue https://github.com/nesbox/TIC-80/issues/260

This maybe your controller.  I have a USB controller that is  replicate of the Sega Saturn controller (not the analog one.)   On most controllers Button 1 would be Start.  On mine it's Button 9.  The bottom row is usually Button 1, 2, and 3  to match older game controllers (Atari, NEC, NES/Familcom,  Sega 8 bit systems like the Master System, Sega Genesis/Mega Drive 3 button,  etc) but on mine its Button 4,  2, 1.  I can go into cases button you get the idea.

I'm just getting in developing in TIC-80 but could you create setup screen? instead of hard coding the settings put the button ID into an array.  arrButton[0] = 6 (button 6).  Also if your setting could could be saved (cookie, LocalStorage, text file) you wouldn't have to reset your configuration when swope cartrages.