refactor: relocate code

This commit is contained in:
lilong.129
2024-09-01 15:45:54 +08:00
parent 3e17d48e5a
commit 6f9946801d
9 changed files with 336 additions and 310 deletions

View File

@@ -323,22 +323,6 @@ const (
NotificationTypeDarwin NotificationType = "darwin"
)
// EventPageID The event page identifier
type EventPageID int
const EventPageIDConsumer EventPageID = 0x0C
// EventUsageID The event usage identifier (usages are defined per-page)
type EventUsageID int
const (
EventUsageIDCsmrVolumeUp EventUsageID = 0xE9
EventUsageIDCsmrVolumeDown EventUsageID = 0xEA
EventUsageIDCsmrHome EventUsageID = 0x40
EventUsageIDCsmrPower EventUsageID = 0x30
EventUsageIDCsmrSnapshot EventUsageID = 0x65 // Power + Home
)
type Orientation string
const (