4 * Copyright (C) 2011 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
7 * SeokYeon Hwang <syeon.hwang@samsung.com>
8 * MunKyu Im <munkyu.im@samsung.com>
9 * GiWoong Kim <giwoong.kim@samsung.com>
10 * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33 #ifndef __EMUL_STATE_H__
34 #define __EMUL_STATE_H__
37 #include "maru_common.h"
38 #include "maru_finger.h"
40 /* keep it consistent with emulator-skin definition */
44 HARD_KEY_VOL_UP = 115,
45 HARD_KEY_VOL_DOWN = 114,
48 /* keep it consistent with emulator-skin definition */
58 /* keep it consistent with emulator-skin definition */
64 /* keep it consistent with emulator-skin definition */
66 ROTATION_PORTRAIT = 0,
67 ROTATION_LANDSCAPE = 1,
68 ROTATION_REVERSE_PORTRAIT = 2,
69 ROTATION_REVERSE_LANDSCAPE = 3,
73 HOST_CAPSLOCK_KEY = 1,
78 typedef struct EmulatorConfigInfo {
83 bool input_mouse_enable;
84 bool input_touch_enable;
87 int device_serial_number;
92 typedef struct EmulatorConfigState {
93 int emulator_condition; //TODO : enum
96 MultiTouchState qemu_mts;
100 } EmulatorConfigState;
104 void set_emul_skin_enable(int enable);
105 void set_emul_lcd_size(int width, int height);
106 void set_emul_win_scale(double scale);
107 void set_emul_sdl_bpp(int bpp);
108 void set_emul_input_mouse_enable(bool on);
109 void set_emul_input_touch_enable(bool on);
110 void set_emul_max_touch_point(int cnt);
111 void set_emul_vm_base_port(int port);
113 void set_emulator_condition(int state);
114 void set_emul_rotation(short rotation_type);
115 void set_emul_caps_lock_state(int state);
116 void set_emul_num_lock_state(int state);
117 void set_emul_vm_name(char *vm_name);
120 int get_emul_skin_enable(void);
121 int get_emul_lcd_width(void);
122 int get_emul_lcd_height(void);
123 double get_emul_win_scale(void);
124 int get_emul_sdl_bpp(void);
125 bool is_emul_input_mouse_enable(void);
126 bool is_emul_input_touch_enable(void);
127 int get_emul_max_touch_point(void);
128 int get_emul_vm_base_port(void);
129 int get_device_serial_number(void);
131 int get_emulator_condition(void);
132 short get_emul_rotation(void);
133 MultiTouchState *get_emul_multi_touch_state(void);
134 int get_host_lock_key_state(int key);
135 int get_host_lock_key_state_darwin(int key);
136 int get_emul_caps_lock_state(void);
137 int get_emul_num_lock_state(void);
138 char* get_emul_vm_name(void);
140 #endif /* __EMUL_STATE_H__ */