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

« back to all changes in this revision

Viewing changes to Box2D/Testbed/Tests/Revolute.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:
124
124
 
125
125
        }
126
126
 
127
 
        void Keyboard(unsigned char key)
 
127
        void Keyboard(int key)
128
128
        {
129
129
                switch (key)
130
130
                {
131
 
                case 'l':
 
131
                case GLFW_KEY_L:
132
132
                        m_joint->EnableLimit(!m_joint->IsLimitEnabled());
133
133
                        break;
134
134
 
135
 
                case 'm':
 
135
                case GLFW_KEY_M:
136
136
                        m_joint->EnableMotor(!m_joint->IsMotorEnabled());
137
137
                        break;
138
138
                }
141
141
        void Step(Settings* settings)
142
142
        {
143
143
                Test::Step(settings);
144
 
                m_debugDraw.DrawString(5, m_textLine, "Keys: (l) limits, (m) motor");
 
144
                g_debugDraw.DrawString(5, m_textLine, "Keys: (l) limits, (m) motor");
145
145
                m_textLine += DRAW_STRING_NEW_LINE;
146
146
 
147
147
                //if (m_stepCount == 360)
150
150
                //}
151
151
 
152
152
                //float32 torque1 = m_joint1->GetMotorTorque();
153
 
                //m_debugDraw.DrawString(5, m_textLine, "Motor Torque = %4.0f, %4.0f : Motor Force = %4.0f", (float) torque1, (float) torque2, (float) force3);
 
153
                //g_debugDraw.DrawString(5, m_textLine, "Motor Torque = %4.0f, %4.0f : Motor Force = %4.0f", (float) torque1, (float) torque2, (float) force3);
154
154
                //m_textLine += DRAW_STRING_NEW_LINE;
155
155
        }
156
156