4 * Copyright (C) 2011, 2012 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 */
57 /* keep it consistent with emulator-skin definition */
63 /* keep it consistent with emulator-skin definition */
65 ROTATION_PORTRAIT = 0,
66 ROTATION_LANDSCAPE = 1,
67 ROTATION_REVERSE_PORTRAIT = 2,
68 ROTATION_REVERSE_LANDSCAPE = 3,
72 HOST_CAPSLOCK_KEY = 1,
77 typedef struct EmulatorConfigInfo {
87 typedef struct EmulatorConfigState {
88 int emulator_condition; //TODO : enum
91 MultiTouchState qemu_mts;
95 } EmulatorConfigState;
99 void set_emul_skin_enable(int enable);
100 void set_emul_lcd_size(int width, int height);
101 void set_emul_win_scale(double scale);
102 void set_emul_sdl_bpp(int bpp);
103 void set_emul_max_touch_point(int cnt);
104 void set_emul_vm_base_port(int port);
106 void set_emulator_condition(int state);
107 void set_emul_rotation(short rotation_type);
108 void set_emul_caps_lock_state(int state);
109 void set_emul_num_lock_state(int state);
112 int get_emul_skin_enable(void);
113 int get_emul_lcd_width(void);
114 int get_emul_lcd_height(void);
115 double get_emul_win_scale(void);
116 int get_emul_sdl_bpp(void);
117 int get_emul_max_touch_point(void);
118 int get_emul_vm_base_port(void);
120 int get_emulator_condition(void);
121 short get_emul_rotation(void);
122 MultiTouchState *get_emul_multi_touch_state(void);
123 int get_host_lock_key_state(int key);
124 int get_host_lock_key_state_darwin(int key);
125 int get_emul_caps_lock_state(void);
126 int get_emul_num_lock_state(void);
129 #endif /* __EMUL_STATE_H__ */