Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ pub enum EV_ABS {
ABS_TOOL_WIDTH = 28,
ABS_VOLUME = 32,
ABS_PROFILE = 33,
ABS_SND_PROFILE = 34,
ABS_MISC = 40,
ABS_RESERVED = 46,
ABS_MT_SLOT = 47,
Expand Down Expand Up @@ -232,6 +233,7 @@ pub const fn int_to_ev_abs(code: u32) -> Option<EV_ABS> {
28 => Some(EV_ABS::ABS_TOOL_WIDTH),
32 => Some(EV_ABS::ABS_VOLUME),
33 => Some(EV_ABS::ABS_PROFILE),
34 => Some(EV_ABS::ABS_SND_PROFILE),
40 => Some(EV_ABS::ABS_MISC),
46 => Some(EV_ABS::ABS_RESERVED),
47 => Some(EV_ABS::ABS_MT_SLOT),
Expand Down Expand Up @@ -284,6 +286,7 @@ impl std::str::FromStr for EV_ABS {
"ABS_TOOL_WIDTH" => Ok(EV_ABS::ABS_TOOL_WIDTH),
"ABS_VOLUME" => Ok(EV_ABS::ABS_VOLUME),
"ABS_PROFILE" => Ok(EV_ABS::ABS_PROFILE),
"ABS_SND_PROFILE" => Ok(EV_ABS::ABS_SND_PROFILE),
"ABS_MISC" => Ok(EV_ABS::ABS_MISC),
"ABS_RESERVED" => Ok(EV_ABS::ABS_RESERVED),
"ABS_MT_SLOT" => Ok(EV_ABS::ABS_MT_SLOT),
Expand Down