~brandontschaefer/libsdl/sdl-mir-support

« back to all changes in this revision

Viewing changes to src/video/mir/SDL_mirevents.c

  • Committer: Brandon Schaefer
  • Date: 2013-11-21 17:07:22 UTC
  • Revision ID: brandontschaefer@gmail.com-20131121170722-k9tw8e4p4uwl97ac
* Move the declaration to the top of the scope

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
    int device_id = motion.device_id;
134
134
    int id = motion.pointer_coordinates[cord_index].id;
135
135
 
136
 
    AddTouchDevice(motion.device_id);
137
 
 
138
136
    int width  = sdl_window->w;
139
137
    int height = sdl_window->h;
140
138
    float x   = motion.pointer_coordinates[cord_index].x;
144
142
    float n_y = y / height;
145
143
    float pressure = motion.pointer_coordinates[cord_index].pressure;
146
144
 
 
145
    AddTouchDevice(motion.device_id);
 
146
 
147
147
    switch (motion.action)
148
148
    {
149
149
        case mir_motion_action_down: