src/events/SDL_mouse.c
changeset 3195 08747e24a50f
parent 3191 91b335df6fc8
child 3253 5d7ef5970073
equal deleted inserted replaced
3194:c18c03927a77 3195:08747e24a50f
    95     *SDL_mice[index] = *mouse;
    95     *SDL_mice[index] = *mouse;
    96 
    96 
    97     /* we're setting the mouse properties */
    97     /* we're setting the mouse properties */
    98     length = 0;
    98     length = 0;
    99     length = SDL_strlen(name);
    99     length = SDL_strlen(name);
       
   100     SDL_mice[index]->focus = 0;
   100     SDL_mice[index]->name = SDL_malloc((length + 2) * sizeof(char));
   101     SDL_mice[index]->name = SDL_malloc((length + 2) * sizeof(char));
   101     SDL_strlcpy(SDL_mice[index]->name, name, length + 1);
   102     SDL_strlcpy(SDL_mice[index]->name, name, length + 1);
   102     SDL_mice[index]->pressure_max = pressure_max;
   103     SDL_mice[index]->pressure_max = pressure_max;
   103     SDL_mice[index]->pressure_min = pressure_min;
   104     SDL_mice[index]->pressure_min = pressure_min;
   104     SDL_mice[index]->cursor_shown = SDL_TRUE;
   105     SDL_mice[index]->cursor_shown = SDL_TRUE;