dm: key.h: add key state
add KEY_PRESS_LONG_DOWN and KEY_LONG_DOWN_MS. Change-Id: I3877a3562779a44b29c31820c583f187530778f8 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
965c1b1063
commit
c315aab89c
|
|
@ -7,10 +7,13 @@
|
|||
#ifndef _KEY_H_
|
||||
#define _KEY_H_
|
||||
|
||||
#define KEY_LONG_DOWN_MS 2000
|
||||
|
||||
enum key_state {
|
||||
KEY_PRESS_NONE,
|
||||
KEY_PRESS_UP,
|
||||
KEY_PRESS_DOWN,
|
||||
KEY_PRESS_LONG_DOWN,
|
||||
};
|
||||
|
||||
struct dm_key_ops {
|
||||
|
|
|
|||
Loading…
Reference in New Issue