Add B3G_RETURN key code, only implemented in Windows so far (todo: Mac, Linux) Fix Windows key management (use WM_CHAR event instead of WM_KEYUP Add Return (OnKeyReturn) key support TreeNode, so we can select an item using the return key.
28 lines
504 B
C++
28 lines
504 B
C++
#ifndef RAGDOLL_DEMO_H
|
|
#define RAGDOLL_DEMO_H
|
|
|
|
|
|
#include "../../Demos/CommonRigidBodySetup.h"
|
|
#include "../BasicDemo/BasicDemo.h"
|
|
|
|
struct BulletDemoInterface;
|
|
struct SimpleOpenGL3App;
|
|
|
|
class RagDollSetup : public CommonRigidBodySetup
|
|
{
|
|
public:
|
|
|
|
static BulletDemoInterface* MyCreateFunc(SimpleOpenGL3App* app)
|
|
{
|
|
CommonPhysicsSetup* physicsSetup = new RagDollSetup();
|
|
return new BasicDemo(app, physicsSetup);
|
|
|
|
}
|
|
|
|
void initPhysics(GraphicsPhysicsBridge& gfxBridge);
|
|
|
|
};
|
|
|
|
#endif //RAGDOLL_DEMO_H
|
|
|