mirror of
https://github.com/tonk-labs/dappicom.git
synced 2026-04-17 03:01:42 -04:00
Config JSON
Configuration for TetaNES is stored in config.json with defaults that can be
customized in the TetaNES config menu.
Outlined below is the explanation of the more complicated structure of the configuration.
Bindings
Keyboard Mappings
A keys array with the following values:
player: The player this keybinding should apply to (One,Two,Three, orFour).key: A string that maps to apix_engine::prelude::Keyvariant.keymod: A number that maps to apix_engine::prelude::KeyModconstant:NONE:0SHIFT:1,CTRL:64,ALT:256,GUI:1024,
action: An object that maps to annes::Actionvariant. e.g.{ "Joypad": "Left" } }
Mouse Mappings
A mouse array wit hhe following values:
player: The player this button should apply to (One,Two,Three, orFour).button: A string that maps to apix_engine::prelud::Mousevariant.action: An object that maps to anNes::Actionvariant. e.g.{ "Zapper": [0, 0] }
Controller Button Mappings
A buttons array with the following values:
player: The player this button should apply to (One,Two,Three, orFour).button: A string that maps to apix_engine::prelude::ControllerButtonvariant.action: An object that maps to annes::Actionvariant. e.g.{ "Nes": ToggleMenu" } }
Controller Axis Mappings
A axes array with the following values:
player: The player this button should apply to (One,Two,Three, orFour).axis: A string that maps to apix_engine::prelude::Axisvariant.direction:None,Positive, orNegativeto indicate axis direction.action: An object that maps to annes::Actionvariant. e.g.{ "ZeroAxis": ["Left", "Right"] } }