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:
Joseph Chen 2017-11-28 18:25:53 +08:00 committed by Kever Yang
parent 965c1b1063
commit c315aab89c
1 changed files with 3 additions and 0 deletions

View File

@ -7,10 +7,13 @@
#ifndef _KEY_H_ #ifndef _KEY_H_
#define _KEY_H_ #define _KEY_H_
#define KEY_LONG_DOWN_MS 2000
enum key_state { enum key_state {
KEY_PRESS_NONE, KEY_PRESS_NONE,
KEY_PRESS_UP, KEY_PRESS_UP,
KEY_PRESS_DOWN, KEY_PRESS_DOWN,
KEY_PRESS_LONG_DOWN,
}; };
struct dm_key_ops { struct dm_key_ops {