summaryrefslogtreecommitdiff
path: root/firmware/target/hosted
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted')
-rw-r--r--firmware/target/hosted/android/app/button-target.h7
-rw-r--r--firmware/target/hosted/sdl/app/button-target.h18
-rw-r--r--firmware/target/hosted/ypr0/button-target.h10
3 files changed, 0 insertions, 35 deletions
diff --git a/firmware/target/hosted/android/app/button-target.h b/firmware/target/hosted/android/app/button-target.h
index b532c94f47..326d65872d 100644
--- a/firmware/target/hosted/android/app/button-target.h
+++ b/firmware/target/hosted/android/app/button-target.h
@@ -23,11 +23,7 @@
23#define _BUTTON_TARGET_H_ 23#define _BUTTON_TARGET_H_
24 24
25#include <stdbool.h> 25#include <stdbool.h>
26#include "config.h"
27 26
28#undef button_init_device
29void button_init_device(void);
30int button_read_device(int *data);
31unsigned multimedia_to_button(int keyboard_key); 27unsigned multimedia_to_button(int keyboard_key);
32unsigned dpad_to_button(int keyboard_key); 28unsigned dpad_to_button(int keyboard_key);
33void android_ignore_back_button(bool yes); 29void android_ignore_back_button(bool yes);
@@ -61,8 +57,5 @@ void android_ignore_back_button(bool yes);
61#define BUTTON_BOTTOMRIGHT 0x00100000 57#define BUTTON_BOTTOMRIGHT 0x00100000
62 58
63#define BUTTON_FORCE_REDRAW 0x00200000 59#define BUTTON_FORCE_REDRAW 0x00200000
64
65/* No remote */
66#define BUTTON_REMOTE 0
67 60
68#endif /* _BUTTON_TARGET_H_ */ 61#endif /* _BUTTON_TARGET_H_ */
diff --git a/firmware/target/hosted/sdl/app/button-target.h b/firmware/target/hosted/sdl/app/button-target.h
index d4396fd0d5..26d0fedcc5 100644
--- a/firmware/target/hosted/sdl/app/button-target.h
+++ b/firmware/target/hosted/sdl/app/button-target.h
@@ -22,21 +22,6 @@
22#ifndef _BUTTON_TARGET_H_ 22#ifndef _BUTTON_TARGET_H_
23#define _BUTTON_TARGET_H_ 23#define _BUTTON_TARGET_H_
24 24
25#include <stdbool.h>
26#include "config.h"
27/*
28
29#define HAS_BUTTON_HOLD
30
31bool button_hold(void);
32*/
33void button_init_device(void);
34#ifdef HAVE_BUTTON_DATA
35int button_read_device(int *data);
36#else
37int button_read_device(void);
38#endif
39
40/* Main unit's buttons */ 25/* Main unit's buttons */
41#define BUTTON_UP 0x00000001 26#define BUTTON_UP 0x00000001
42#define BUTTON_DOWN 0x00000002 27#define BUTTON_DOWN 0x00000002
@@ -61,9 +46,6 @@ int button_read_device(void);
61 46
62#define BUTTON_MAIN 0x1FFF 47#define BUTTON_MAIN 0x1FFF
63 48
64/* No remote */
65#define BUTTON_REMOTE 0
66
67/* Software power-off */ 49/* Software power-off */
68#define POWEROFF_BUTTON BUTTON_POWER 50#define POWEROFF_BUTTON BUTTON_POWER
69#define POWEROFF_COUNT 10 51#define POWEROFF_COUNT 10
diff --git a/firmware/target/hosted/ypr0/button-target.h b/firmware/target/hosted/ypr0/button-target.h
index beddc66c67..d7b95de785 100644
--- a/firmware/target/hosted/ypr0/button-target.h
+++ b/firmware/target/hosted/ypr0/button-target.h
@@ -22,14 +22,7 @@
22#ifndef _BUTTON_TARGET_H_ 22#ifndef _BUTTON_TARGET_H_
23#define _BUTTON_TARGET_H_ 23#define _BUTTON_TARGET_H_
24 24
25#include <stdbool.h>
26#include "config.h"
27
28bool headphones_inserted(void);
29
30void button_init_device(void);
31void button_close_device(void); 25void button_close_device(void);
32int button_read_device(void);
33 26
34/* Logical buttons key codes */ 27/* Logical buttons key codes */
35#define BUTTON_UP 0x00000001 28#define BUTTON_UP 0x00000001
@@ -44,9 +37,6 @@ int button_read_device(void);
44 37
45#define BUTTON_MAIN 0x1FF /* all buttons */ 38#define BUTTON_MAIN 0x1FF /* all buttons */
46 39
47/* No remote */
48#define BUTTON_REMOTE 0
49
50/* Software power-off */ 40/* Software power-off */
51#define POWEROFF_BUTTON BUTTON_POWER 41#define POWEROFF_BUTTON BUTTON_POWER
52/* About 3 seconds */ 42/* About 3 seconds */