static EmulatorConfigInfo _emul_info;
static EmulatorConfigState _emul_state;
+
+/* current emulator condition */
+int get_emulator_condition(void)
+{
+ return _emul_state.emulator_condition;
+}
+
+void set_emulator_condition(int state)
+{
+ _emul_state.emulator_condition = state;
+}
+
/* lcd screen size */
void set_emul_lcd_size(int width, int height)
{
typedef struct EmulatorConfigInfo {
- char emulator_name[256];
+ char emulator_name[256]; //TODO:
int lcd_size_w;
int lcd_size_h;
- int dpi;
+ int dpi; //not used yet
//TODO:
} EmulatorConfigInfo;
typedef struct EmulatorConfigState {
+ int emulator_condition; //TODO : enum
double scale_factor;
short rotation_type;
MultiTouchState qemu_mts;
/* setter */
+void set_emulator_condition(int state);
void set_emul_lcd_size(int width, int height);
void set_emul_win_scale(double scale);
void set_emul_rotation(short rotation_type);
/* getter */
+int get_emulator_condition(void);
int get_emul_lcd_width(void);
int get_emul_lcd_height(void);
double get_emul_win_scale(void);
MULTI_DEBUG_CHANNEL(qemu, main);
+
#define IMAGE_PATH_PREFIX "file="
#define IMAGE_PATH_SUFFIX ",if=virtio"
#define SDB_PORT_PREFIX "sdb_port="
#define MIDBUF 128
int tizen_base_port = 0;
-int _emulator_condition = 0; //TODO:
char tizen_target_path[MAXLEN] = {0, };
char logpath[MAXLEN] = { 0, };
-int get_emulator_condition(void)
-{
- return _emulator_condition;
-}
-
-void set_emulator_condition(int state)
-{
- _emulator_condition = state;
-}
void exit_emulator(void)
{
extern char tizen_target_path[MAXLEN];
-int get_emulator_condition(void);
-void set_emulator_condition(int state);
void exit_emulator(void);
void set_image_and_log_path(char *qemu_argv);
void get_tizen_port(char* option);
-#endif
+#endif /* __EMULATOR_H__ */
return get_emul_multi_touch_state()->multitouch_enable;
}
-static int add_finger_point(int x, int y)
+static int _add_finger_point(int x, int y)
{
MultiTouchState *mts = get_emul_multi_touch_state();
if (mts->finger_cnt == 0)
{ //first finger touch input
- if (add_finger_point(x, y) == -1) {
+ if (_add_finger_point(x, y) == -1) {
return;
}
kbd_mouse_event(x, y, 0, QEMU_MOUSE_PRESSED);
}
else //one more finger
{
- add_finger_point(x, y) ;
+ _add_finger_point(x, y) ;
kbd_mouse_event(x, y, mts->finger_cnt - 1, QEMU_MOUSE_PRESSED);
}