From 985022a6231814de2bfaf621fd0725c48bb98411 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 13 Apr 2015 13:04:32 -0700 Subject: Remove unnecessary globals. Change-Id: I76a042432aede08ceaf250319cf5eeb25d601150 --- ui.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ui.h') diff --git a/ui.h b/ui.h index c5c65c2..4dcaa0f 100644 --- a/ui.h +++ b/ui.h @@ -147,14 +147,15 @@ private: int count; }; - pthread_t input_t; + pthread_t input_thread_; void OnKeyDetected(int key_code); - static void* input_thread(void* cookie); - static int input_callback(int fd, uint32_t epevents, void* data); - void process_key(int key_code, int updown); - bool usb_connected(); + static int InputCallback(int fd, uint32_t epevents, void* data); + int OnInputEvent(int fd, uint32_t epevents); + void ProcessKey(int key_code, int updown); + + bool IsUsbConnected(); static void* time_key_helper(void* cookie); void time_key(int key_code, int count); -- cgit v1.1