+/obs-gamepad
overlay to display inputs
git clone https://git.julia.blue/+/obs-gamepad
ee5f4b6
main
1# nix eval --json --file gram-layout.nix | yj -jt > gram.toml 2let 3blue = "#5BCEFA" ; 4pink = "#F5A9B8" ; 5white = "#FFFFFF" ; 6alpha = "42" ; 7btn = id :pos :color :{ 8id = id ; 9pos = map ( n :n * 2 ) pos ; 10fill_active = color ; outline_active = color ; 11fill = color + alpha ; outline = color ; 12}; 13in { 14outline_weight = 3.4 ; 15button_shape . radius = 21.8 ; 16buttons = [ 17( btn 0 [ 201.3 102.03 ] white ) # Start 18( btn 5 [ 69.13 96.58 ] blue ) # L 19( btn 11 [ 96.85 84.93 ] pink ) # Left 20( btn 9 [ 125.26 87.18 ] white ) # Down 21( btn 10 [ 149.33 103.61 ] pink ) # Right 22( btn 6 [ 247.55 78.68 ] blue ) # R 23( btn 1 [ 271.77 62.53 ] pink ) # Y 24( btn 18 [ 300.1 60.66 ] white ) # Light-shield 25( btn 19 [ 328.69 71.8 ] pink ) # Mid-shield 26( btn 3 [ 252.41 106.18 ] blue ) # B 27( btn 2 [ 276.44 89.76 ] pink ) # X 28( btn 7 [ 304.87 87.76 ] white ) # Z 29( btn 8 [ 333.5 98.98 ] pink ) # Up 30( btn 12 [ 145.16 167.24 ] blue ) # Mod-x 31( btn 13 [ 164.77 186.71 ] pink ) # Mod-y 32( btn 14 [ 222.94 158.79 ] white ) # C-left 33( btn 16 [ 242.56 139.19 ] blue ) # C-up 34( btn 17 [ 230.98 186.06 ] blue ) # C-down 35( btn 4 [ 250.57 166.58 ] pink ) # A 36( btn 15 [ 270.21 147.46 ] white ) # C-right 37( btn 20 [ 129.84 61.17 ] blue ) # D-pad toggle 38]; 39}