Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def hotkeygen_context(self) -> HotkeysContext:
'keys': {
'exit': 'KEY_F7',
'menu': 'KEY_TAB',
'coin': 'KEY_A',
'save_state': 'KEY_F9',
'restore_state': 'KEY_F8',
'fastforward': 'KEY_SPACE',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def _generate_special_port_element(
# Special button input (ie mouse button to gamepad)
sequence = _get_input_definition(controller, key, input, controller.index + 1, reversed, 0)
if mapping == f'COIN{nplayer}' and nplayer == 1:
sequence = sequence + f' OR KEYCODE_{nplayer}_F{nplayer + 11}' # f12 for player 1
sequence = sequence + f' OR KEYCODE_{nplayer}_5'

config.add_sequence_port(
mapping,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@

@cached_dataclass
class Dice(Core):
def set_config(self, custom_config: LibretroConfig, /) -> None:
super().set_config(custom_config)

custom_config.set('input_player1_select', 'num5')

def set_core_options(self, core_options: LibretroConfig, /) -> None:
# Pointer-as-paddle, simplest mouse setup
core_options.set_from_config(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_command_arguments(self) -> list[str | Path] | None:
def set_config(self, custom_config: LibretroConfig, /) -> None:
super().set_config(custom_config)

custom_config.set('input_player1_select', 'f12')
custom_config.set('input_player1_select', 'num5')

def set_core_options(self, core_options: LibretroConfig, /) -> None:
# Diagnostic input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def set_config(self, custom_config: LibretroConfig, /) -> None:
super().set_config(custom_config)

if self.system != 'dreamcast':
custom_config.set('input_player1_select', 'f12')
custom_config.set('input_player1_select', 'num5')


@cached_dataclass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ def precalibrate_guns(self) -> None:
def map_lightguns(self) -> bool:
return self.config.get_bool('lightgun_map')

def set_config(self, custom_config: LibretroConfig, /) -> None:
super().set_config(custom_config)

custom_config.set('input_player1_select', 'num5')

def set_core_options(self, core_options: LibretroConfig, /) -> None:
# Skip Disclaimer and Warnings
core_options.set('mame2003-plus_skip_disclaimer', 'enabled')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,13 @@ def __post_init__(self) -> None:

@cached_property
def hotkeygen_context(self) -> HotkeysContext:
# f12 for coin : set in libretroMameConfig.py, others in libretroControllers.py
return {
'name': 'retroarch',
'keys': {
'exit': ['KEY_LEFTSHIFT', 'KEY_ESC'],
'menu': ['KEY_LEFTSHIFT', 'KEY_F1'],
'pause': ['KEY_LEFTSHIFT', 'KEY_P'],
'coin': 'KEY_F12',
'coin': 'KEY_5',
'save_state': ['KEY_LEFTSHIFT', 'KEY_F3'],
'restore_state': ['KEY_LEFTSHIFT', 'KEY_F4'],
'previous_slot': ['KEY_LEFTSHIFT', 'KEY_F5'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def sdl_controller_db_path(self) -> Path:
def hotkeygen_context(self) -> HotkeysContext:
return {
'name': 'cannonball',
'keys': {'exit': ['KEY_LEFTALT', 'KEY_F4']},
'keys': {'exit': ['KEY_LEFTALT', 'KEY_F4'], 'coin': 'KEY_5'},
}

async def configure(self) -> Command:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Demul(Emulator):
def hotkeygen_context(self) -> HotkeysContext:
return {
'name': 'demul',
'keys': {'exit': ['KEY_LEFTALT', 'KEY_F4']},
'keys': {'exit': ['KEY_LEFTALT', 'KEY_F4'], 'coin': 'KEY_MINUS'},
}

@cached_property
Expand Down
Loading