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="M20 20 L44 20 Q48.95 20 52.45 23.5 56 27.05 56 32 56 36.95 52.45 40.45 48.95 44 44 44 L20 44 Q15.05 44 11.5 40.45 8 36.95 8 32 8 27.05 11.5 23.5 15.05 20 20 20 M24.15 34.9 L25.4 34.9 25.4 30.15 27.2 30.15 27.2 29.1 22.35 29.1 22.35 30.15 24.15 30.15 24.15 34.9 M36.5 30.5 L37.35 32.8 35.7 32.8 36.5 30.5 M32.2 31.45 L29.8 31.45 29.8 30.15 32.55 30.15 32.55 29.1 28.55 29.1 28.55 34.9 32.55 34.9 32.55 33.85 29.8 33.85 29.8 32.5 32.2 32.5 32.2 31.45 M35.35 33.8 L37.65 33.8 38.1 34.9 39.45 34.9 37.15 29.1 35.9 29.1 33.65 34.9 34.95 34.9 35.35 33.8 M21.25 29.55 L20.45 29.2 19.25 29 Q18.3 29 17.7 29.45 17.1 29.9 17.1 30.7 17.1 31.4 17.55 31.8 17.9 32.15 18.75 32.4 L19.75 32.75 Q20.1 32.95 20.1 33.25 L19.85 33.7 19.05 33.9 Q18.2 33.9 17.4 33.45 L17 34.5 Q17.9 35 19.1 35 L20.75 34.55 Q21.4 34.05 21.4 33.15 21.4 32.55 21 32.15 20.7 31.85 19.9 31.6 L18.8 31.2 Q18.4 31 18.4 30.65 18.4 30.35 18.65 30.2 L19.3 30.05 20.05 30.15 20.7 30.5 21.25 29.55 M43.5 34.75 L44.2 34.75 45.8 31.35 45.8 34.9 47 34.9 47 29.1 45.8 29.1 43.9 33.3 41.9 29.1 40.7 29.1 40.7 34.9 41.9 34.9 41.9 31.4 43.5 34.75"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -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="M22 24 L22 41 34 41 34 37 26 37 26 24 22 24 M42 24 L38 24 35 27 35 28.95 38 28.95 38 33.85 38 33.95 38 41 42 41 42 24 M8 34 L8 32.95 8 32 8 27.5 Q8.2 19.5 13.85 13.85 19.5 8.2 27.5 8 L48 8 Q56 8 56 16 L56 48 Q56 56 48 56 L16 56 Q8 56 8 48 L8 34"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 426 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="M41.5 28.4 Q42.25 29.15 41 30.45 L34 37 34 41 38.85 41 38.95 41 46 41 46 37 40 37 44.45 32.55 Q46.65 30.35 45.4 27 L44.4 25.65 44.35 25.6 Q42.75 24 40.5 24 L38.85 24 Q36.9 24.05 35.5 25.4 L35.4 25.5 Q34.35 26.6 34.1 28 L34 29 38 29 Q38 28.6 38.3 28.3 L38.85 28 38.95 28 40.5 28 Q41.1 28 41.5 28.4 M8 30 L8 16 Q8 8 16 8 L48 8 Q56 8 56 16 L56 48 Q56 56 48 56 L27.5 56 Q19.5 55.8 13.85 50.15 8.2 44.5 8 36.5 L8 32 8 31.05 8 30 M19 24 L19 41 31 41 31 37 23 37 23 24 19 24"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 649 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="M22.9 22 L41.1 22 Q45.6 22 48.8 24.9 52 27.85 52 32 52 36.1 48.8 39.05 45.6 42 41.1 42 L22.9 42 Q18.4 42 15.2 39.05 12 36.1 12 32 12 27.85 15.2 24.9 18.4 22 22.9 22 M26 27 L26 29 38 29 38 27 26 27 M26 35 L26 37 38 37 38 35 26 35 M26 31 L26 33 38 33 38 31 26 31"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 442 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="M43 24 L39 24 36 27 36 28.95 39 28.95 39 33.85 39 33.95 39 41 43 41 43 24 M56 34 L56 48 Q56 56 48 56 L16 56 Q8 56 8 48 L8 16 Q8 8 16 8 L36.5 8 Q44.5 8.2 50.15 13.85 55.8 19.5 56 27.5 L56 32 56 32.95 56 34 M19 24 L19 41 23 41 23 36 26 36 28.5 41 32.5 41 29.45 34.9 30.2 34.25 30.25 34.2 Q32 32.45 32 30 32 27.5 30.25 25.75 28.5 24 26 24 L19 24 M26 28 Q26.8 28 27.4 28.6 28 29.2 28 30 28 30.8 27.45 31.35 L27.35 31.45 Q26.8 32 26 32 L23 32 23 28 26 28"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 631 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 30 L56 31.05 56 32 56 36.5 Q55.8 44.5 50.15 50.15 44.5 55.8 36.5 56 L16 56 Q8 56 8 48 L8 16 Q8 8 16 8 L48 8 Q56 8 56 16 L56 30 M41.5 28.4 Q42.25 29.15 41 30.45 L34 37 34 41 38.85 41 38.95 41 46 41 46 37 40 37 44.45 32.55 Q46.65 30.35 45.4 27 L44.4 25.65 44.35 25.6 Q42.75 24 40.5 24 L38.85 24 Q36.9 24.05 35.5 25.4 L35.4 25.5 Q34.35 26.6 34.1 28 L34 29 38 29 Q38 28.6 38.3 28.3 L38.85 28 38.95 28 40.5 28 Q41.1 28 41.5 28.4 M18 24 L18 41 22 41 22 36 25 36 27.5 41 31.5 41 28.45 34.9 29.2 34.25 29.25 34.2 Q31 32.45 31 30 31 27.5 29.25 25.75 27.5 24 25 24 L18 24 M25 28 Q25.8 28 26.4 28.6 27 29.2 27 30 27 30.8 26.45 31.35 L26.35 31.45 Q25.8 32 25 32 L22 32 22 28 25 28"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 854 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="M29 30 L29 38 41 38 41 30 29 30 M22.9 22 L41.1 22 Q45.6 22 48.8 24.9 52 27.85 52 32 52 36.1 48.8 39.05 45.6 42 41.1 42 L22.9 42 Q18.4 42 15.2 39.05 12 36.1 12 32 12 27.85 15.2 24.9 18.4 22 22.9 22 M23 26 L23 34 27 34 27 32 25 32 25 28 35 28 35 26 23 26"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 434 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,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="M41 41 L41 52 Q41 56 37 56 L27 56 Q23 56 23 52 L23 41 23 23 23 12 Q23 8 27 8 L37 8 Q41 8 41 12 L41 23 41 41"/>
|
||||
<path stroke="none" fill="#E73246" d="M41 41 L41 23 52 23 Q56 23 56 27 L56 37 Q56 41 52 41 L41 41 M23 41 L12 41 Q8 41 8 37 L8 27 Q8 23 12 23 L23 23 23 41"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 450 B |