Change-Id: I04da6e45adad9a3360627cd241bba32e0fc04d94
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
*/
#include <libinput.h>
+#include <linux/input.h>
#include <glib.h>
#include "core/devices.h"
#include "shared/log.h"
-#define KEYCODE_BT_PAIRING 114
-#define KEYCODE_POWERKEY 116
-
#define KEYVALUE_PRESS 1
#define KEYVALUE_RELEASE 0
_D("key input: code=%d, value=%d", keycode, keyvalue);
- if (keycode == KEYCODE_POWERKEY) {
+ if (keycode == KEY_POWER) {
if (keyvalue == KEYVALUE_PRESS)
start_longpress_timer();
else if (keyvalue == KEYVALUE_RELEASE)