mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 16:13:27 +00:00
Add InputProp comments
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
6d101c5b6d
commit
50c10653fb
@ -12,13 +12,23 @@ use super::{
|
||||
};
|
||||
|
||||
bitflags! {
|
||||
/// The properties of input device.
|
||||
///
|
||||
/// Ref: Linux input-event-codes.h
|
||||
pub struct InputProp : u8{
|
||||
/// Needs a pointer
|
||||
const POINTER = 1 << 0;
|
||||
/// Direct input devices
|
||||
const DIRECT = 1 << 1;
|
||||
/// Has button(s) under pad
|
||||
const BUTTONPAD = 1 << 2;
|
||||
/// Touch rectangle only
|
||||
const SEMI_MT = 1 << 3;
|
||||
/// Softbuttons at top of pad
|
||||
const TOPBUTTONPAD = 1 << 4;
|
||||
/// Is a pointing stick
|
||||
const POINTING_STICK = 1 << 5;
|
||||
/// Has accelerometer
|
||||
const ACCELEROMETER = 1 << 6;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user