Skip to content
Open
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
8 changes: 7 additions & 1 deletion src/hhd/device/ayaneo/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,13 +509,19 @@ def controller_loop(
d_timer = HrtimerTrigger(conf["imu_hz"].to(int), [HrtimerTrigger.IMU_NAMES])

# Inputs
# By default the gamepad's BTN_MODE is repurposed as the QAM/overlay
# button (share). On devices where it is the main "guide" button (e.g.
# Konkr Fit), keep it as the XBOX default (mode) so it opens Steam.
xinput_btn_map = {**XBOX_BUTTON_MAP}
if not dconf.get("mode_is_guide", False):
xinput_btn_map[EC("BTN_MODE")] = "share"
d_xinput = GenericGamepadEvdev(
vid=[GAMEPAD_VID],
pid=[GAMEPAD_PID],
capabilities={EC("EV_KEY"): [EC("BTN_A")]},
required=True,
hide=True,
btn_map={**XBOX_BUTTON_MAP, EC("BTN_MODE"): "share"},
btn_map=xinput_btn_map,
)

d_kbd_1 = GenericGamepadEvdev(
Expand Down
12 changes: 12 additions & 0 deletions src/hhd/device/ayaneo/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@
"rgb": True,
**AYA_DEFAULT_CONF,
},
# Konkr (Ayaneo sub-brand). Same controller hw as AYANEO 3
# (1c4f:0002 composite + 045e:028e gamepad) but no detachable
# modules (no ayaneo-ec EC interface). Four extra buttons (two rear
# paddles + LC/RC) and BTN_MODE is the main button, so it acts as the
# guide/Steam button rather than the QAM/overlay button.
"KONKR FIT": {
"name": "KONKR FIT",
"extra_buttons": "quad",
"mode_is_guide": True,
"rgb": True,
**AYA_DEFAULT_CONF,
},
}

AYA3_INIT = [
Expand Down