kvm/internal/usbgadget
Marc Brooks f903a6d8c2
Add ability to track modifier state on the device
Remove LED sync source option and add keypress reporting while still working with devices that haven't been upgraded
We return the modifiers as the valid bitmask so that the VirtualKeyboard and InfoBar can represent the correct keys as down. This is important when we have strokes like Left-Control + Right-Control + Keypad-1 (used in switching KVMs and such).
Fix handling of modifier keys in client and also removed the extraneous resetKeyboardState.
Manage state to eliminate rerenders by judicious use of useMemo.
Centralized keyboard layout and localized display maps
Move keyboardOptions to useKeyboardLayouts
Added translations for display maps.
Add documentation on the legacy support.

Return the KeysDownState from keyboardReport
Clear out the hidErrorRollOver once sent to reset the keyboard to nothing down.
Handles the returned KeysDownState from keyboardReport
Now passes all logic through handleKeyPress.
If we get a state back from a keyboardReport, use it and also enable keypressReport because we now know it's an upgraded device.
Added exposition on isoCode management

Fix de-DE chars to reflect German E2 keyboard.
https://kbdlayout.info/kbdgre2/overview+virtualkeys

Ran go modernize
Morphs Interface{} to any
Ranges over SplitSeq and FieldSeq for iterating splits
Used min for end calculation remote_mount.Read
Used range 16 in wol.createMagicPacket
DID NOT apply the Omitempty cleanup.

Strong typed in the typescript realm.
Cleanup react state management to enable upgrading Zustand
2025-08-25 18:37:57 -05:00
..
changeset.go fix: configFS might not be mounted if the directory exists (#479) 2025-05-19 23:59:02 +02:00
changeset_arm_test.go chore(usbgadget): update usbgadget config only when needed (#474) 2025-05-19 21:48:43 +02:00
changeset_resolver.go fix(usbgadget): do not panic if a change isn't found (#481) 2025-05-20 00:34:32 +02:00
changeset_symlink.go fix: unit test not returning error when test fails 2025-05-19 22:51:11 +02:00
config.go chore: fix the base usb configuration (#610) 2025-07-09 23:57:51 +02:00
config_tx.go fix(usbgadget): do not panic if a change isn't found (#481) 2025-05-20 00:34:32 +02:00
consts.go refactor(usb): move usbconfig to a seperated package 2025-03-10 14:02:52 +01:00
hid.go refactor(usb): move usbconfig to a seperated package 2025-03-10 14:02:52 +01:00
hid_keyboard.go Add ability to track modifier state on the device 2025-08-25 18:37:57 -05:00
hid_mouse_absolute.go Add ability to track modifier state on the device 2025-08-25 18:37:57 -05:00
hid_mouse_relative.go Add ability to track modifier state on the device 2025-08-25 18:37:57 -05:00
log.go chore(usbgadget): update usbgadget config only when needed (#474) 2025-05-19 21:48:43 +02:00
mass_storage.go feat(usb_mass_storage): mount as disk (#333) 2025-05-12 19:07:27 +02:00
udc.go chore(usbgadget): update usbgadget config only when needed (#474) 2025-05-19 21:48:43 +02:00
usbgadget.go Add ability to track modifier state on the device 2025-08-25 18:37:57 -05:00
utils.go Add ability to track modifier state on the device 2025-08-25 18:37:57 -05:00