~ubuntu-branches/ubuntu/lucid/blender/lucid

« back to all changes in this revision

Viewing changes to source/gameengine/BlenderRoutines/KX_BlenderKeyboardDevice.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2009-08-06 22:32:19 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090806223219-8z4eej1u8levu4pz
Tags: 2.49a+dfsg-0ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control: Build-depend on python-2.6 rather than python-2.5.
  - debian/misc/*.desktop: Add Spanish translation to .desktop 
    files.
  - debian/pyversions: 2.6.
  - debian/rules: Clean *.o of source/blender/python/api2_2x/
* New upstream release (LP: #382153).
* Refreshed patches:
  - 01_sanitize_sys.patch
  - 02_tmp_in_HOME
  - 10_use_systemwide_ftgl
  - 70_portability_platform_detection
* Removed patches merged upstream:
  - 30_fix_python_syntax_warning
  - 90_ubuntu_ffmpeg_52_changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: KX_BlenderKeyboardDevice.cpp 15444 2008-07-05 17:05:05Z lukep $
 
2
 * $Id: KX_BlenderKeyboardDevice.cpp 19630 2009-04-09 22:15:26Z campbellbarton $
3
3
 * ***** BEGIN GPL LICENSE BLOCK *****
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or
74
74
        
75
75
        // now convert justpressed keyevents into regular (active) keyevents
76
76
        int previousTable = 1-m_currentTable;
77
 
        for (int keyevent= KX_BEGINKEY; keyevent< KX_ENDKEY;keyevent++)
 
77
        for (int keyevent= KX_BEGINKEY; keyevent<= KX_ENDKEY;keyevent++)
78
78
        {
79
79
                SCA_InputEvent& oldevent = m_eventStatusTables[previousTable][keyevent];
80
80
                if (oldevent.m_status == SCA_InputEvent::KX_JUSTACTIVATED ||
100
100
        KX_EnumInputs kxevent = this->ToNative(incode);
101
101
 
102
102
        // only process it, if it's a key
103
 
        if (kxevent >= KX_BEGINKEY && kxevent < KX_ENDKEY)
 
103
        if (kxevent >= KX_BEGINKEY && kxevent <= KX_ENDKEY)
104
104
        {
105
105
                int previousTable = 1-m_currentTable;
106
106