Ecore_Event_Mouse_Wheel *ev;
float dx, dy = 0;
- ev = malloc(sizeof(Ecore_Event_Mouse_Wheel));
+ ev = calloc(1, sizeof(Ecore_Event_Mouse_Wheel));
if (!ev) return pass;
if ([event hasPreciseScrollingDeltas])
{
Ecore_Event_Mouse_Move *ev;
- ev = malloc(sizeof(Ecore_Event_Mouse_Move));
+ ev = calloc(1, sizeof(Ecore_Event_Mouse_Move));
if (!ev) return;
mouse_x += x_axis;
Ecore_Event_Mouse_Button *ev;
static unsigned int previous_timestamp = 0;
- ev = malloc(sizeof(Ecore_Event_Mouse_Button));
+ ev = calloc(1, sizeof(Ecore_Event_Mouse_Button));
if (!ev) return;
ev->window = 0;
{
Ecore_Event_Mouse_Wheel *ev;
- ev = malloc(sizeof(Ecore_Event_Mouse_Wheel));
+ ev = calloc(1, sizeof(Ecore_Event_Mouse_Wheel));
if (!ev) return;
ev->timestamp = _ecore_psl1ght_get_time ();
{
Ecore_Event_Mouse_Move *ev;
- ev = malloc(sizeof(Ecore_Event_Mouse_Move));
+ ev = calloc(1, sizeof(Ecore_Event_Mouse_Move));
if (!ev) return;
ev->timestamp = timestamp;
{
Ecore_Event_Mouse_Button *ev;
- ev = malloc(sizeof(Ecore_Event_Mouse_Button));
+ ev = calloc(1, sizeof(Ecore_Event_Mouse_Button));
if (!ev) return;
ev->timestamp = timestamp;
{
Ecore_Event_Mouse_Wheel *ev;
- ev = malloc(sizeof(Ecore_Event_Mouse_Wheel));
+ ev = calloc(1, sizeof(Ecore_Event_Mouse_Wheel));
if (!ev) return;
ev->timestamp = timestamp;
{
Ecore_Event_Mouse_Button *ev;
- ev = malloc(sizeof(Ecore_Event_Mouse_Button));
+ ev = calloc(1, sizeof(Ecore_Event_Mouse_Button));
if (!ev) return;
ev->timestamp = timestamp;
ev->window = event.button.windowID;
/* LOGFN(__FILE__, __LINE__, __FUNCTION__); */
- if (!(ev = malloc(sizeof(Ecore_Event_Mouse_Move)))) return;
+ if (!(ev = calloc(1, sizeof(Ecore_Event_Mouse_Move)))) return;
ev->timestamp = timestamp;
ev->x = input->sx;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- if (!(ev = malloc(sizeof(Ecore_Event_Mouse_Button)))) return;
+ if (!(ev = calloc(1, sizeof(Ecore_Event_Mouse_Button)))) return;
if (button == BTN_LEFT)
ev->buttons = 1;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- if (!(ev = malloc(sizeof(Ecore_Event_Mouse_Button)))) return;
+ if (!(ev = calloc(1, sizeof(Ecore_Event_Mouse_Button)))) return;
if (button == BTN_LEFT)
ev->buttons = 1;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
- if (!(ev = malloc(sizeof(Ecore_Event_Mouse_Wheel)))) return;
+ if (!(ev = calloc(1, sizeof(Ecore_Event_Mouse_Wheel)))) return;
ev->timestamp = timestamp;
ev->modifiers = input->modifiers;
{
Ecore_Event_Mouse_Wheel *e;
- if (!(e = malloc(sizeof(Ecore_Event_Mouse_Wheel)))) return;
+ if (!(e = calloc(1, sizeof(Ecore_Event_Mouse_Wheel)))) return;
e->timestamp = ev->time;
e->modifiers = _ecore_xcb_events_modifiers_get(ev->state);
{
Ecore_Event_Mouse_Move *e;
- if (!(e = malloc(sizeof(Ecore_Event_Mouse_Move)))) return;
+ if (!(e = calloc(1, sizeof(Ecore_Event_Mouse_Move)))) return;
e->window = win;
e->root_window = root_win;
Ecore_Event_Mouse_Button *e;
Ecore_X_Mouse_Down_Info *info = NULL;
- if (!(e = malloc(sizeof(Ecore_Event_Mouse_Button)))) return NULL;
+ if (!(e = calloc(1, sizeof(Ecore_Event_Mouse_Button)))) return NULL;
e->window = win;
e->root_window = root_win;
Ecore_Event_Mouse_Move *e;
Ecore_Event *event;
- e = malloc(sizeof(Ecore_Event_Mouse_Move));
+ e = calloc(1, sizeof(Ecore_Event_Mouse_Move));
if (!e)
return;
Ecore_Event_Axis_Update *e;
int i;
- e = malloc(sizeof(Ecore_Event_Axis_Update));
+ e = calloc(1, sizeof(Ecore_Event_Axis_Update));
if (!e)
{
if (axis) free(axis);
{
Ecore_Event_Mouse_Button *e;
- e = malloc(sizeof(Ecore_Event_Mouse_Button));
+ e = calloc(1, sizeof(Ecore_Event_Mouse_Button));
if (!e)
return NULL;
{
Ecore_Event_Mouse_Wheel *e;
- e = malloc(sizeof(Ecore_Event_Mouse_Wheel));
+ e = calloc(1, sizeof(Ecore_Event_Mouse_Wheel));
if (!e)
return;