~ubuntu-branches/ubuntu/wily/box2d/wily

« back to all changes in this revision

Viewing changes to Box2D/Testbed/Tests/ApplyForce.h

  • Committer: Package Import Robot
  • Author(s): Markus Koschany
  • Date: 2014-05-30 18:42:02 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20140530184202-hosw11agojg02ac3
Tags: 2.3.1+ds-1
* Imported Upstream version 2.3.1+ds.
* Fix debian/watch to determine new releases by parsing
  the SVN tags of upstream's version control system.
* Update get-orig-source target for new release.
* dh_strip override: Replace $VER variable with 2.3.0 string.
* debian/copyright: Add new Public Domain and Apache 2.0 license.
* libbox2d-dev.install:
  - Install *.cmake files in /usr/lib/$(DEB_HOST_MULTIARCH)/cmake/Box2D.

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
                }
144
144
        }
145
145
 
146
 
        void Keyboard(unsigned char key)
 
146
        void Keyboard(int key)
147
147
        {
148
148
                switch (key)
149
149
                {
150
 
                case 'w':
 
150
                case GLFW_KEY_W:
151
151
                        {
152
152
                                b2Vec2 f = m_body->GetWorldVector(b2Vec2(0.0f, -200.0f));
153
153
                                b2Vec2 p = m_body->GetWorldPoint(b2Vec2(0.0f, 2.0f));
155
155
                        }
156
156
                        break;
157
157
 
158
 
                case 'a':
 
158
                case GLFW_KEY_A:
159
159
                        {
160
160
                                m_body->ApplyTorque(50.0f, true);
161
161
                        }
162
162
                        break;
163
163
 
164
 
                case 'd':
 
164
                case GLFW_KEY_D:
165
165
                        {
166
166
                                m_body->ApplyTorque(-50.0f, true);
167
167
                        }