~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to src/gui/sdlinput.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi, Andrei Karas, Patrick Matthäi
  • Date: 2013-05-27 09:14:03 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20130527091403-4b1jceqok7g2v5on
Tags: 1.3.5.26-1
[ Andrei Karas ]
* Add new files to copyright file.
* Update homepage URL.

[ Patrick Matthäi ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
    gcn::MouseInput mouseInput;
101
101
 
102
102
    if (mMouseInputQueue.empty())
103
 
    {
104
103
        throw GCN_EXCEPTION("The queue is empty.");
105
 
    }
106
104
 
107
105
    mouseInput = mMouseInputQueue.front();
108
106
    mMouseInputQueue.pop();
115
113
    MouseInput mouseInput;
116
114
 
117
115
    if (mMouseInputQueue.empty())
118
 
    {
119
116
        throw GCN_EXCEPTION("The queue is empty.");
120
 
    }
121
117
 
122
118
    mouseInput = mMouseInputQueue.front();
123
119
    mMouseInputQueue.pop();
266
262
int SDLInput::convertKeyCharacter(const SDL_Event &event)
267
263
{
268
264
    const SDL_keysym keysym = event.key.keysym;
269
 
 
270
265
    int value = keysym.unicode;
271
266
 
272
267
    switch (keysym.sym)
462
457
              break;
463
458
        }
464
459
    }
465
 
 
466
460
    return value;
467
461
}