Skip to content

Commit

Permalink
Add d.Layer()
Browse files Browse the repository at this point in the history
  • Loading branch information
sago35 committed Dec 26, 2023
1 parent d5e328f commit 6fce419
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions keyboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ func (d *Device) SetKeycodeVia(layer, kbIndex, index int, key Keycode) {
d.kb[kbIndex].SetKeycode(layer, index, kc)
}

func (d *Device) Layer() int {
return d.layer
}

type Keycode k.Keycode

type Keyboard struct {
Expand Down

0 comments on commit 6fce419

Please sign in to comment.