feat: show keyboard keys or the controller's own buttons in the hint bar
The hint bar always named Xbox buttons, so someone at a keyboard was told to press buttons they did not have, and owners of other pads got the wrong letters. Hints now name an action, and the keys or button icons come from the input used last: keyboard, or an Xbox, PlayStation, Switch or Steam Deck controller. Behind Steam, every pad is Steam's virtual one. remus reads the file Steam names in SteamVirtualGamepadInfo to find the physical controller, matching the slot in the pad's name, as SDL does. Icons are Kenney's Input Prompts (CC0), with the licence beside them.
@@ -0,0 +1,6 @@
|
||||
<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs/>
|
||||
<g>
|
||||
<path stroke="none" fill="#FFFFFF" d="M56 32 Q56 42 48.95 48.95 42 56 32 56 22.05 56 15 48.95 8 42 8 32 8 22.05 15 15 22.05 8 32 8 42 8 48.95 15 56 22.05 56 32 M38 42 L42 42 34 22 30 22 22 42 26 42 27.6 38 36.4 38 38 42 M32 27 L34.8 34 29.2 34 32 27"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 393 B |
@@ -0,0 +1,6 @@
|
||||
<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs/>
|
||||
<g>
|
||||
<path stroke="none" fill="#FFFFFF" d="M56 32 Q56 42 48.95 48.95 42 56 32 56 22.05 56 15 48.95 8 42 8 32 8 22.05 15 15 22.05 8 32 8 42 8 48.95 15 56 22.05 56 32 M37 28 Q37 28.85 36.45 29.4 L36.4 29.4 Q35.8 30 35 30 L29 30 29 26 35 26 Q35.8 26 36.35 26.55 L36.45 26.65 Q37 27.2 37 28 M41 36 Q41 33.7 39.5 32 41 30.3 41 28 41 25.55 39.25 23.8 L39.2 23.75 Q37.45 22 35 22 L25 22 25 42 35 42 Q37.45 42 39.2 40.25 L39.25 40.2 Q41 38.45 41 36 M37 36 Q37 36.8 36.45 37.35 L36.35 37.45 Q35.8 38 35 38 L29 38 29 34 35 34 Q35.8 34 36.4 34.6 L36.45 34.6 Q37 35.15 37 36"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 701 B |
@@ -0,0 +1,6 @@
|
||||
<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs/>
|
||||
<g>
|
||||
<path stroke="none" fill="#FFFFFF" d="M56 32 Q56 41.65 49.45 48.45 L48.95 48.95 Q42 56 32 56 22.05 56 15 48.95 L14.5 48.45 Q8 41.65 8 32 8 22.05 15 15 L15.95 14.1 Q22.7 8 32 8 41.35 8 48 14.1 L48.95 15 Q56 22.05 56 32 M20.6 30.55 Q20 31.1 20 31.95 L20 33.15 Q20 33.95 20.6 34.55 21.15 35.1 22 35.1 L24 35.1 24 41.05 24 41.15 Q24.05 41.95 24.6 42.5 25.15 43 26 43 L38 43 Q38.85 43 39.45 42.5 L40 41.15 40 41.05 40 35.1 42 35.1 Q42.85 35.1 43.45 34.55 44 33.95 44 33.15 L44 31.95 Q44 31.1 43.45 30.55 L33.45 20.6 Q32.85 20 32 20 31.15 20 30.6 20.6 L20.6 30.55 M29 38 L29 31.95 35 31.95 35 38 29 38"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 739 B |
@@ -0,0 +1,6 @@
|
||||
<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs/>
|
||||
<g>
|
||||
<path stroke="none" fill="#FFFFFF" d="M46 12 L48.15 12.2 Q50.95 12.65 52.4 14.45 54 16.45 54 20 L54 44 Q54 52 46 52 L18 52 Q10 52 10 44 L10 28 Q10 21.4 14.7 16.7 19.4 12 26 12 L46 12 M25 42 L39 42 39 38 29 38 29 22 25 22 25 42"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 370 B |
@@ -0,0 +1,6 @@
|
||||
<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs/>
|
||||
<g>
|
||||
<path stroke="none" fill="#FFFFFF" d="M20 29 L20 35 44 35 44 29 20 29 M56 32 Q56 42 48.95 48.95 42 56 32 56 22.05 56 15 48.95 8 42 8 32 8 22.05 15 15 22.05 8 32 8 42 8 48.95 15 56 22.05 56 32"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 335 B |
@@ -0,0 +1,6 @@
|
||||
<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs/>
|
||||
<g>
|
||||
<path stroke="none" fill="#FFFFFF" d="M56 32 Q56 42 48.95 48.95 42 56 32 56 22.05 56 15 48.95 8 42 8 32 8 22.05 15 15 22.05 8 32 8 42 8 48.95 15 56 22.05 56 32 M29 20 L29 29 20 29 20 35 29 35 29 44 35 44 35 35 44 35 44 29 35 29 35 20 29 20"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 383 B |
@@ -0,0 +1,6 @@
|
||||
<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs/>
|
||||
<g>
|
||||
<path stroke="none" fill="#FFFFFF" d="M24 22 L24 42 28 42 28 36 34 36 34.5 36 36 42 40 42 38.1 34.35 38.2 34.25 38.25 34.2 Q40 32.45 40 30 L40 28 Q40 25.5 38.25 23.75 L38.2 23.7 37 22.8 Q35.75 22.05 34.2 22 L24 22 M28 26 L34 26 Q34.8 26 35.4 26.6 L35.45 26.6 Q36 27.15 36 28 L36 30 Q36 30.8 35.45 31.35 L35.35 31.45 Q34.8 32 34 32 L28 32 28 26 M18 12 L38 12 Q44.6 12 49.3 16.7 54 21.4 54 28 L54 44 Q54 52 46 52 L18 52 Q10 52 10 44 L10 20 Q10 16.45 11.6 14.45 13.05 12.65 15.85 12.2 L18 12"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 632 B |
@@ -0,0 +1,6 @@
|
||||
<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs/>
|
||||
<g>
|
||||
<path stroke="none" fill="#FFFFFF" d="M56 32 Q56 42 48.95 48.95 42 56 32 56 22.05 56 15 48.95 8 42 8 32 8 22.05 15 15 22.05 8 32 8 42 8 48.95 15 56 22.05 56 32 M23 25 L29 32 23 39 23 40 25.25 42 26.4 42 32 35.5 37.65 42 38.75 42 41 40 41 39 35 32 41 25 41 24 38.75 22 37.65 22 32 28.55 26.4 22 25.25 22 23 24 23 25"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 458 B |
@@ -0,0 +1,6 @@
|
||||
<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs/>
|
||||
<g>
|
||||
<path stroke="none" fill="#FFFFFF" d="M56 32 Q56 42 48.95 48.95 42 56 32 56 22.05 56 15 48.95 8 42 8 32 8 22.05 15 15 22.05 8 32 8 42 8 48.95 15 56 22.05 56 32 M23 25 L30 32.9 30 42 34 42 34 32.9 41 25 41 24 38.75 22 37.65 22 32 28.55 26.4 22 25.25 22 23 24 23 25"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 407 B |
@@ -0,0 +1,6 @@
|
||||
<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs/>
|
||||
<g>
|
||||
<path stroke="none" fill="#FFFFFF" d="M39 44 L39 34 36 34 36 47 45 47 45 44 39 44 M44 10 Q52 10 52 18 L52 46 Q52 54 44 54 L20 54 Q12 54 12 46 L12 33.95 Q12 24.05 19.05 17 26.05 10 36 10 L44 10 M20 33 L29 33 20 43 20 47 33 47 33 44 24 44 33 34 33 30 20 30 20 33"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 404 B |
@@ -0,0 +1,6 @@
|
||||
<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs/>
|
||||
<g>
|
||||
<path stroke="none" fill="#FFFFFF" d="M38 41 L38 37 41 37 Q41.85 37 42.4 37.55 43 38.15 43 39 43 39.85 42.4 40.4 41.85 41 41.05 41 L38 41 M41 44 L42 43.9 42 44 43 47 46 47 44.5 42.5 Q46 41.05 46 39 46 36.95 44.5 35.45 43.05 34 41 34 L35 34 35 47 38 47 38 44 41 44 M20 10 L28 10 Q37.95 10 44.95 17 52 24.05 52 33.95 L52 46 Q52 54 44 54 L20 54 Q12 54 12 46 L12 18 Q12 10 20 10 M19 33 L28 33 19 43 19 47 32 47 32 44 23 44 32 34 32 30 19 30 19 33"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 586 B |
@@ -0,0 +1,7 @@
|
||||
<svg width="64" height="64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<defs/>
|
||||
<g>
|
||||
<path stroke="none" fill="#FFFFFF" d="M23 23 L23 12 Q23 8 27 8 L37 8 Q41 8 41 12 L41 23 41 41 41 52 Q41 56 37 56 L27 56 Q23 56 23 52 L23 41 23 23 M48 28.3 L51.15 30.4 51.9 31.35 Q52.1 32 51.9 32.6 L51.15 33.65 48 35.7 46.7 36 Q45.95 35.9 45.5 35.35 45 34.8 45 34.05 L45 29.9 Q45 29.2 45.5 28.65 45.95 28.1 46.7 28.05 47.4 27.9 48 28.3 M35.7 16 L33.6 12.85 32.65 12.1 Q32 11.9 31.4 12.1 30.75 12.35 30.35 12.85 L28.3 16 Q27.9 16.6 28 17.3 28.1 18.05 28.65 18.5 29.2 19 29.95 19 L34.1 19 Q34.8 19 35.35 18.5 35.9 18.05 35.95 17.3 36.1 16.6 35.7 16 M16 28.3 Q16.6 27.9 17.3 28.05 18.05 28.1 18.5 28.65 19 29.2 19 29.9 L19 34.05 Q19 34.8 18.5 35.35 18.05 35.9 17.3 36 16.6 36.1 16 35.7 L12.85 33.65 12.1 32.6 Q11.9 32 12.1 31.35 12.35 30.75 12.85 30.4 L16 28.3 M35.7 48 Q36.1 47.4 35.95 46.7 35.9 45.95 35.35 45.5 34.8 45 34.1 45 L29.95 45 Q29.2 45 28.65 45.5 28.1 45.95 28 46.7 27.9 47.4 28.3 48 L30.35 51.15 Q30.75 51.65 31.4 51.9 32 52.1 32.65 51.9 L33.6 51.15 35.7 48"/>
|
||||
<path stroke="none" fill="#E73246" d="M41 23 L52 23 Q56 23 56 27 L56 37 Q56 41 52 41 L41 41 41 23 M23 41 L12 41 Q8 41 8 37 L8 27 Q8 23 12 23 L23 23 23 41 M48 28.3 Q47.4 27.9 46.7 28.05 45.95 28.1 45.5 28.65 45 29.2 45 29.9 L45 34.05 Q45 34.8 45.5 35.35 45.95 35.9 46.7 36 L48 35.7 51.15 33.65 51.9 32.6 Q52.1 32 51.9 31.35 L51.15 30.4 48 28.3 M16 28.3 L12.85 30.4 Q12.35 30.75 12.1 31.35 11.9 32 12.1 32.6 L12.85 33.65 16 35.7 Q16.6 36.1 17.3 36 18.05 35.9 18.5 35.35 19 34.8 19 34.05 L19 29.9 Q19 29.2 18.5 28.65 18.05 28.1 17.3 28.05 16.6 27.9 16 28.3"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |