~ubuntu-branches/ubuntu/quantal/kdegames/quantal

« back to all changes in this revision

Viewing changes to granatier/src/game.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Philip Muškovac
  • Date: 2011-07-23 01:58:13 UTC
  • mfrom: (1.3.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110723015813-jko1e0zo440rnhq6
Tags: 4:4.7.0-0ubuntu1
* New upstream release 
  - add libsndfile1-dev to build-deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
436
436
 
437
437
void Game::keyPressEvent(QKeyEvent* p_event)
438
438
{
 
439
    if(p_event->isAutoRepeat())
 
440
    {
 
441
        return;
 
442
    }
 
443
    
439
444
    // At the beginning or when paused, we start the timer when a key is pressed
440
445
    if (!m_timer->isActive())
441
446
    {
496
501
 
497
502
void Game::keyReleaseEvent(QKeyEvent* p_event)
498
503
{
 
504
    if(p_event->isAutoRepeat())
 
505
    {
 
506
        return;
 
507
    }
499
508
    //TODO: make signal
500
509
    for(int i = 0; i < m_players.size(); i++)
501
510
    {