Ecore_Win32_Window *window;
int x;
int y;
- double time;
+ long time;
};
struct _Ecore_Win32_Event_Mouse_Out
Ecore_Win32_Window *window;
int x;
int y;
- double time;
+ long time;
};
struct _Ecore_Win32_Event_Window_Focus_In
{
Ecore_Win32_Window *window;
- double time;
+ long long time;
};
struct _Ecore_Win32_Event_Window_Focus_Out
{
Ecore_Win32_Window *window;
- double time;
+ long time;
};
struct _Ecore_Win32_Event_Window_Damage
int y;
int width;
int height;
- double time;
+ long time;
};
struct _Ecore_Win32_Event_Window_Create
{
Ecore_Win32_Window *window;
- double time;
+ long time;
};
struct _Ecore_Win32_Event_Window_Destroy
{
Ecore_Win32_Window *window;
- double time;
+ long time;
};
struct _Ecore_Win32_Event_Window_Hide
{
Ecore_Win32_Window *window;
- double time;
+ long time;
};
struct _Ecore_Win32_Event_Window_Show
{
Ecore_Win32_Window *window;
- double time;
+ long time;
};
struct _Ecore_Win32_Event_Window_Configure
int y;
int width;
int height;
- double time;
+ long time;
};
struct _Ecore_Win32_Event_Window_Resize
Ecore_Win32_Window *window;
int width;
int height;
- double time;
+ long time;
};
struct _Ecore_Win32_Event_Window_Delete_Request
{
Ecore_Win32_Window *window;
- double time;
+ long time;
};
#define ECORE_WIN32_DND_EVENT_DRAG_ENTER 1
EAPI int ecore_win32_init();
EAPI int ecore_win32_shutdown();
EAPI int ecore_win32_screen_depth_get();
-EAPI double ecore_win32_current_time_get(void);
+EAPI long ecore_win32_current_time_get(void);
EAPI void ecore_win32_message_loop_begin (void);
/* Window */
HINSTANCE _ecore_win32_instance = NULL;
double _ecore_win32_double_click_time = 0.25;
-double _ecore_win32_event_last_time = 0.0;
+long _ecore_win32_event_last_time = 0;
Ecore_Win32_Window *_ecore_win32_event_last_window = NULL;
int _ecore_win32_log_dom = -1;
/**
* Return the last event time
*/
-double
+long
ecore_win32_current_time_get(void)
{
return _ecore_win32_event_last_time;
static Ecore_Win32_Window *_ecore_win32_mouse_down_last_window = NULL;
static Ecore_Win32_Window *_ecore_win32_mouse_down_last_last_window = NULL;
-static double _ecore_win32_mouse_down_last_time = 0;
-static double _ecore_win32_mouse_down_last_last_time = 0;
+static long _ecore_win32_mouse_down_last_time = 0 ;
+static long _ecore_win32_mouse_down_last_last_time = 0 ;
static int _ecore_win32_mouse_down_did_triple = 0;
static int _ecore_win32_mouse_up_count = 0;
free(e);
return;
}
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_win32_event_last_time = e->timestamp;
free(e);
return;
}
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_win32_event_last_time = e->timestamp;
e->z = GET_WHEEL_DELTA_WPARAM(msg->window_param) > 0 ? -1 : 1;
e->x = GET_X_LPARAM(msg->data_param);
e->y = GET_Y_LPARAM(msg->data_param);
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_win32_event_last_time = e->timestamp;
_ecore_win32_event_last_window = (Ecore_Win32_Window *)e->window;
e->window = (Ecore_Window)window;
e->x = GET_X_LPARAM(msg->data_param);
e->y = GET_Y_LPARAM(msg->data_param);
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_win32_event_last_time = e->timestamp;
_ecore_win32_event_last_window = (Ecore_Win32_Window *)e->window;
{
_ecore_win32_mouse_down_last_window = NULL;
_ecore_win32_mouse_down_last_last_window = NULL;
- _ecore_win32_mouse_down_last_time = 0.0;
- _ecore_win32_mouse_down_last_last_time = 0.0;
+ _ecore_win32_mouse_down_last_time = 0;
+ _ecore_win32_mouse_down_last_last_time = 0;
}
e = (Ecore_Event_Mouse_Button *)calloc(1, sizeof(Ecore_Event_Mouse_Button));
e->buttons = button;
e->x = GET_X_LPARAM(msg->data_param);
e->y = GET_Y_LPARAM(msg->data_param);
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
- if (((e->timestamp - _ecore_win32_mouse_down_last_time) <= _ecore_win32_double_click_time) &&
+ if (((e->timestamp - _ecore_win32_mouse_down_last_time) <= (long)(1000 * _ecore_win32_double_click_time)) &&
(e->window == (Ecore_Window)_ecore_win32_mouse_down_last_window))
e->double_click = 1;
- if (((e->timestamp - _ecore_win32_mouse_down_last_last_time) <= (2.0 * _ecore_win32_double_click_time)) &&
+ if (((e->timestamp - _ecore_win32_mouse_down_last_last_time) <= (long)(2 * 1000 * _ecore_win32_double_click_time)) &&
(e->window == (Ecore_Window)_ecore_win32_mouse_down_last_window) &&
(e->window == (Ecore_Window)_ecore_win32_mouse_down_last_last_window))
{
e->window = (Ecore_Window)window;
e->x = GET_X_LPARAM(msg->data_param);
e->y = GET_Y_LPARAM(msg->data_param);
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_win32_event_last_time = e->timestamp;
_ecore_win32_event_last_window = (Ecore_Win32_Window *)e->window;
e->buttons = button;
e->x = GET_X_LPARAM(msg->data_param);
e->y = GET_Y_LPARAM(msg->data_param);
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_win32_mouse_up_count++;
if ((_ecore_win32_mouse_up_count >= 2) &&
- ((e->timestamp - _ecore_win32_mouse_down_last_time) <= _ecore_win32_double_click_time) &&
+ ((e->timestamp - _ecore_win32_mouse_down_last_time) <= (long)(1000 * _ecore_win32_double_click_time)) &&
(e->window == (Ecore_Window)_ecore_win32_mouse_down_last_window))
e->double_click = 1;
if ((_ecore_win32_mouse_up_count >= 3) &&
- ((e->timestamp - _ecore_win32_mouse_down_last_last_time) <= (2.0 * _ecore_win32_double_click_time)) &&
+ ((e->timestamp - _ecore_win32_mouse_down_last_last_time) <= (long)(2 * 1000 * _ecore_win32_double_click_time)) &&
(e->window == (Ecore_Window)_ecore_win32_mouse_down_last_window) &&
(e->window == (Ecore_Window)_ecore_win32_mouse_down_last_last_window))
e->triple_click = 1;
e->window = (Ecore_Window)GetWindowLong(msg->window, GWL_USERDATA);
e->x = GET_X_LPARAM(msg->data_param);
e->y = GET_Y_LPARAM(msg->data_param);
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
ecore_event_add(ECORE_EVENT_MOUSE_MOVE, e, NULL, NULL);
}
e->window = (Ecore_Window)GetWindowLong(msg->window, GWL_USERDATA);
e->x = msg->x;
e->y = msg->y;
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_win32_event_last_time = e->timestamp;
_ecore_win32_event_last_window = (Ecore_Win32_Window *)e->window;
e->window = (void *)GetWindowLong(msg->window, GWL_USERDATA);
e->x = msg->x;
e->y = msg->y;
- e->time = (double)msg->time / 1000.0;
+ e->time = msg->time ;
_ecore_win32_event_last_time = e->time;
e->window = (Ecore_Window)GetWindowLong(msg->window, GWL_USERDATA);
e->x = msg->x;
e->y = msg->y;
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_win32_event_last_time = e->timestamp;
_ecore_win32_event_last_window = (Ecore_Win32_Window *)e->window;
e->window = (void *)GetWindowLong(msg->window, GWL_USERDATA);
e->x = msg->x;
e->y = msg->y;
- e->time = (double)msg->time / 1000.0;
+ e->time = msg->time;
_ecore_win32_event_last_time = e->time;
extern HINSTANCE _ecore_win32_instance;
extern double _ecore_win32_double_click_time;
-extern double _ecore_win32_event_last_time;
+extern long _ecore_win32_event_last_time;
extern Ecore_Win32_Window *_ecore_win32_event_last_window;
Ecore_WinCE_Window *window;
int x;
int y;
- double time;
+ long time;
};
struct _Ecore_WinCE_Event_Mouse_Out
Ecore_WinCE_Window *window;
int x;
int y;
- double time;
+ long time;
};
struct _Ecore_WinCE_Event_Window_Focus_In
{
Ecore_WinCE_Window *window;
- double time;
+ long time;
};
struct _Ecore_WinCE_Event_Window_Focus_Out
{
Ecore_WinCE_Window *window;
- double time;
+ long time;
};
struct _Ecore_WinCE_Event_Window_Damage
int y;
int width;
int height;
- double time;
+ long time;
};
struct _Ecore_WinCE_Event_Window_Create
{
Ecore_WinCE_Window *window;
- double time;
+ long time;
};
struct _Ecore_WinCE_Event_Window_Destroy
{
Ecore_WinCE_Window *window;
- double time;
+ long time;
};
struct _Ecore_WinCE_Event_Window_Hide
{
Ecore_WinCE_Window *window;
- double time;
+ long time;
};
struct _Ecore_WinCE_Event_Window_Show
{
Ecore_WinCE_Window *window;
- double time;
+ long time;
};
struct _Ecore_WinCE_Event_Window_Delete_Request
{
Ecore_WinCE_Window *window;
- double time;
+ long time;
};
EAPI int ecore_wince_init();
EAPI int ecore_wince_shutdown();
-EAPI double ecore_wince_current_time_get(void);
+EAPI long ecore_wince_current_time_get(void);
EAPI void ecore_wince_message_loop_begin (void);
/* Window */
/***** Global declarations *****/
double _ecore_wince_double_click_time = 0.25;
-double _ecore_wince_event_last_time = 0.0;
+long _ecore_wince_event_last_time = 0;
Ecore_WinCE_Window *_ecore_wince_event_last_window = NULL;
HINSTANCE _ecore_wince_instance = NULL;
int _ecore_wince_log_dom = -1;
/**
* Return the last event time
*/
-EAPI double
+EAPI long
ecore_wince_current_time_get(void)
{
return _ecore_wince_event_last_time;
static Ecore_WinCE_Window *_ecore_wince_mouse_down_last_window = NULL;
static Ecore_WinCE_Window *_ecore_wince_mouse_down_last_last_window = NULL;
-static double _ecore_wince_mouse_down_last_time = 0;
-static double _ecore_wince_mouse_down_last_last_time = 0;
+static long _ecore_wince_mouse_down_last_time = 0;
+static long _ecore_wince_mouse_down_last_last_time = 0;
static int _ecore_wince_mouse_down_did_triple = 0;
static int _ecore_wince_mouse_up_count = 0;
free(e);
return;
}
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_wince_event_last_time = e->timestamp;
free(e);
return;
}
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_wince_event_last_time = e->timestamp;
e->window = (Ecore_Window)window;
e->x = LOWORD(msg->data_param);
e->y = HIWORD(msg->data_param);
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_wince_event_last_time = e->timestamp;
_ecore_wince_event_last_window = (Ecore_WinCE_Window *)e->window;
{
_ecore_wince_mouse_down_last_window = NULL;
_ecore_wince_mouse_down_last_last_window = NULL;
- _ecore_wince_mouse_down_last_time = 0.0;
- _ecore_wince_mouse_down_last_last_time = 0.0;
+ _ecore_wince_mouse_down_last_time = 0;
+ _ecore_wince_mouse_down_last_last_time = 0;
}
e = (Ecore_Event_Mouse_Button *)calloc(1, sizeof(Ecore_Event_Mouse_Button));
e->buttons = button;
e->x = LOWORD(msg->data_param);
e->y = HIWORD(msg->data_param);
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
- if (((e->timestamp - _ecore_wince_mouse_down_last_time) <= _ecore_wince_double_click_time) &&
+ if (((e->timestamp - _ecore_wince_mouse_down_last_time) <= (long)(1000 * _ecore_wince_double_click_time)) &&
(e->window == (Ecore_Window)_ecore_wince_mouse_down_last_window))
e->double_click = 1;
- if (((e->timestamp - _ecore_wince_mouse_down_last_last_time) <= (2.0 * _ecore_wince_double_click_time)) &&
+ if (((e->timestamp - _ecore_wince_mouse_down_last_last_time) <= (long)(2 * 1000 * _ecore_wince_double_click_time)) &&
(e->window == (Ecore_Window)_ecore_wince_mouse_down_last_window) &&
(e->window == (Ecore_Window)_ecore_wince_mouse_down_last_last_window))
{
e->window = (Ecore_Window)window;
e->x = LOWORD(msg->data_param);
e->y = HIWORD(msg->data_param);
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_wince_event_last_time = e->timestamp;
_ecore_wince_event_last_window = (Ecore_WinCE_Window *)e->window;
e->buttons = button;
e->x = LOWORD(msg->data_param);
e->y = HIWORD(msg->data_param);
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_wince_mouse_up_count++;
if ((_ecore_wince_mouse_up_count >= 2) &&
- ((e->timestamp - _ecore_wince_mouse_down_last_time) <= _ecore_wince_double_click_time) &&
+ ((e->timestamp - _ecore_wince_mouse_down_last_time) <= (long)(1000 * _ecore_wince_double_click_time)) &&
(e->window == (Ecore_Window)_ecore_wince_mouse_down_last_window))
e->double_click = 1;
if ((_ecore_wince_mouse_up_count >= 3) &&
- ((e->timestamp - _ecore_wince_mouse_down_last_last_time) <= (2.0 * _ecore_wince_double_click_time)) &&
+ ((e->timestamp - _ecore_wince_mouse_down_last_last_time) <= (long)(2 * 1000 * _ecore_wince_double_click_time)) &&
(e->window == (Ecore_Window)_ecore_wince_mouse_down_last_window) &&
(e->window == (Ecore_Window)_ecore_wince_mouse_down_last_last_window))
e->triple_click = 1;
e->window = (Ecore_Window)GetWindowLong(msg->window, GWL_USERDATA);
e->x = LOWORD(msg->data_param);
e->y = HIWORD(msg->data_param);
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
ecore_event_add(ECORE_EVENT_MOUSE_MOVE, e, NULL, NULL);
}
e->window = (Ecore_Window)window;
e->x = msg->x;
e->y = msg->y;
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_wince_event_last_time = e->timestamp;
_ecore_wince_event_last_window = (Ecore_WinCE_Window *)e->window;
e->window = window;
e->x = msg->x;
e->y = msg->y;
- e->time = (double)msg->time / 1000.0;
+ e->time = msg->time;
_ecore_wince_event_last_time = e->time;
e->window = (Ecore_Window)window;
e->x = msg->x;
e->y = msg->y;
- e->timestamp = (double)msg->time / 1000.0;
+ e->timestamp = msg->time;
_ecore_wince_event_last_time = e->timestamp;
_ecore_wince_event_last_window = (Ecore_WinCE_Window *)e->window;
e->window = window;
e->x = msg->x;
e->y = msg->y;
- e->time = (double)msg->time / 1000.0;
+ e->time = msg->time;
_ecore_wince_event_last_time = e->time;
extern HINSTANCE _ecore_wince_instance;
extern double _ecore_wince_double_click_time;
-extern double _ecore_wince_event_last_time;
+extern long _ecore_wince_event_last_time;
extern Ecore_WinCE_Window *_ecore_wince_event_last_window;