Skip to content

Commit 703178d

Browse files
author
pinnacle-comp
committed
1 parent 7bb89f1 commit 703178d

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

main/classes/pinnacle.input.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,70 @@ Input.set_repeat_rate(100, 1000) -- Key must be held down for 1 second, then rep
213213

214214

215215

216+
### <Badge type="function" text="function" /> set_xkb_keymap
217+
218+
<div class="language-lua"><pre><code>function pinnacle.input.set_xkb_keymap(keymap: string)</code></pre></div>
219+
220+
Sets the XKB keymap.
221+
222+
#### Examples
223+
```lua
224+
Input.set_xkb_keymap("keymap here...")
225+
226+
-- From a file
227+
Input.set_xkb_keymap(io.open("/path/to/keymap.xkb"):read("*a"))
228+
```
229+
230+
231+
#### Parameters
232+
233+
`keymap`: <code>string</code> - The keymap to set.
234+
235+
236+
237+
238+
239+
240+
### <Badge type="function" text="function" /> cycle_xkb_layout_forward
241+
242+
<div class="language-lua"><pre><code>function pinnacle.input.cycle_xkb_layout_forward()</code></pre></div>
243+
244+
Cycles the current XKB layout forward.
245+
246+
247+
248+
249+
250+
251+
### <Badge type="function" text="function" /> cycle_xkb_layout_backward
252+
253+
<div class="language-lua"><pre><code>function pinnacle.input.cycle_xkb_layout_backward()</code></pre></div>
254+
255+
Cycles the current XKB layout backward.
256+
257+
258+
259+
260+
261+
262+
### <Badge type="function" text="function" /> switch_xkb_layout
263+
264+
<div class="language-lua"><pre><code>function pinnacle.input.switch_xkb_layout(index: integer)</code></pre></div>
265+
266+
Switches the current XKB layout to the one at the provided `index`.
267+
268+
Fails if the index is out of bounds.
269+
270+
271+
#### Parameters
272+
273+
`index`: <code>integer</code> - The index of the layout to switch to.
274+
275+
276+
277+
278+
279+
216280
### <Badge type="function" text="function" /> set_xcursor_theme
217281

218282
<div class="language-lua"><pre><code>function pinnacle.input.set_xcursor_theme(theme: string)</code></pre></div>

0 commit comments

Comments
 (0)