Files
deckhud/testdata/vdf/layers.vdf
T
ziadarafatandClaude Opus 5.5 e012bbcf16 feat(steamcfg): typed config model with layer and mode-shift resolution
Action sets/layers ordered by preset id (binding targets are id+1),
group_source_bindings, activators, radial menu items. Layer groups fall
through per input unless they change the source's mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013UzjWSBjtVZ2zi8fJxS2hH
2026-10-30 15:59:39 -06:00

226 lines
3.0 KiB
Plaintext

// Hand-written fixture: two action sets, one layer, a mode shift and a radial menu.
"controller_mappings"
{
"version" "3"
"title" "layers fixture"
"controller_type" "controller_neptune"
"actions"
{
"Default"
{
"title" "Desktop"
}
"Preset_1000001"
{
"title" "Gamepad"
}
}
"action_layers"
{
"Preset_1000002"
{
"title" "Editing"
"set_layer" "1"
"parent_set_name" "Default"
}
}
"group"
{
"id" "0"
"mode" "switches"
"inputs"
{
"button_back_right"
{
"activators"
{
"Full_Press"
{
"bindings"
{
"binding" "key_press LEFT_CONTROL, , "
"binding" "key_press V, , "
}
}
"Long_Press"
{
"bindings"
{
"binding" "controller_action hold_layer 3 0 0, , "
}
"settings"
{
"long_press_time" "400"
}
}
}
}
"button_back_left"
{
"activators"
{
"Full_Press"
{
"bindings"
{
"binding" "key_press SPACE, , "
}
}
}
}
"left_bumper"
{
"activators"
{
"Full_Press"
{
"bindings"
{
"binding" "mode_shift right_joystick 3"
}
}
}
}
}
}
"group"
{
"id" "1"
"mode" "joystick_mouse"
"inputs"
{
}
}
"group"
{
"id" "2"
"mode" "switches"
"inputs"
{
"button_back_left"
{
"activators"
{
"Full_Press"
{
"bindings"
{
"binding" "key_press LEFT_CONTROL, , "
"binding" "key_press Z, Undo, "
}
}
}
}
}
"settings"
{
"layer" "1"
}
}
"group"
{
"id" "3"
"mode" "radial_menu"
"name" "text ops"
"inputs"
{
"touch_menu_button_2"
{
"activators"
{
"Full_Press"
{
"bindings"
{
"binding" "key_press LEFT_CONTROL, Paste, ghost_045_move_0010.png, "
"binding" "key_press V, , "
}
}
}
}
"touch_menu_button_1"
{
"activators"
{
"Full_Press"
{
"bindings"
{
"binding" "key_press LEFT_CONTROL, Copy, "
"binding" "key_press C, , "
}
}
}
}
}
"settings"
{
"touchmenu_button_fire_type" "0"
}
}
"group"
{
"id" "4"
"mode" "radial_menu"
"inputs"
{
}
"settings"
{
"layer" "1"
}
}
"group"
{
"id" "5"
"mode" "four_buttons"
"inputs"
{
"button_a"
{
"activators"
{
"Full_Press"
{
"bindings"
{
"binding" "xinput_button A, , "
}
}
}
}
}
}
"preset"
{
"id" "0"
"name" "Default"
"group_source_bindings"
{
"0" "switch active"
"1" "right_joystick active"
"3" "right_joystick active modeshift"
"5" "button_diamond inactive"
}
}
"preset"
{
"id" "1"
"name" "Preset_1000001"
"group_source_bindings"
{
"5" "button_diamond active"
}
}
"preset"
{
"id" "2"
"name" "Preset_1000002"
"group_source_bindings"
{
"2" "switch active"
"4" "right_joystick active"
}
}
}