Or you could have your EventReceiver class something like this :
// Event Receiver.h
#include <irrlicht.h>
struct mouse {
bool left;
};
struct keyboard {
bool escape;
};
class EventReceiver : public irr::IEventReceiver
{
mouse Mouse;
keyboard Keyboard;
virtual bool OnEvent(irr ...
Search found 33 matches
- Thu May 03, 2007 10:22 am
- Forum: Beginners Help
- Topic: EventReciever in another file?
- Replies: 9
- Views: 796
- Wed May 02, 2007 10:53 pm
- Forum: Beginners Help
- Topic: Button release event?
- Replies: 6
- Views: 575
Button release event?
Is there an event with button release? For example click is irr::gui::EGET_BUTTON_CLICKED. Is there something like irr::gui::EGET_BUTTON_RELEASED ?
- Tue Apr 24, 2007 5:50 pm
- Forum: Beginners Help
- Topic: Setting color of object without lighting?
- Replies: 5
- Views: 434
- Sun Apr 22, 2007 3:34 pm
- Forum: Beginners Help
- Topic: How to properly use IAnimationEndCallBack
- Replies: 9
- Views: 1121
- Sat Apr 21, 2007 2:28 pm
- Forum: Beginners Help
- Topic: movement
- Replies: 13
- Views: 1290
- Sat Apr 21, 2007 1:45 pm
- Forum: Beginners Help
- Topic: problem with my class in c++ now with the real files
- Replies: 5
- Views: 386
- Sat Apr 21, 2007 5:59 am
- Forum: Beginners Help
- Topic: movement
- Replies: 13
- Views: 1290
I'll try to use my telepathic abilities... Maybe you forgot to put receiver into the device creation function :
If it's not true, just post your code here!
Code: Select all
device = createDevice(video::EDT_OPENGL, core::dimension2d<s32>(640, 480),
16, false, false, false, &receiver);
- Fri Apr 20, 2007 2:29 pm
- Forum: Beginners Help
- Topic: Collosion Detection - getting the node.
- Replies: 3
- Views: 409
- Fri Apr 20, 2007 10:24 am
- Forum: Beginners Help
- Topic: How to properly use IAnimationEndCallBack
- Replies: 9
- Views: 1121
- Fri Apr 20, 2007 5:19 am
- Forum: Beginners Help
- Topic: How to properly use IAnimationEndCallBack
- Replies: 9
- Views: 1121
- Thu Apr 19, 2007 11:56 am
- Forum: Beginners Help
- Topic: How to properly use IAnimationEndCallBack
- Replies: 9
- Views: 1121
- Wed Apr 18, 2007 6:03 pm
- Forum: Beginners Help
- Topic: Button and image
- Replies: 4
- Views: 451
- Wed Apr 18, 2007 5:31 pm
- Forum: Beginners Help
- Topic: How to properly use IAnimationEndCallBack
- Replies: 9
- Views: 1121
How to properly use IAnimationEndCallBack
Hello again, i came with new problems once more. Right now it's with class IAnimationEndCallBack usage. So, let's start :
i have class Enemy, which has private (it could be public) members that shows which animation is currently being played, and which not.
struct anim {
bool run;
bool attack ...
i have class Enemy, which has private (it could be public) members that shows which animation is currently being played, and which not.
struct anim {
bool run;
bool attack ...
- Sat Apr 14, 2007 7:50 pm
- Forum: Beginners Help
- Topic: Basic C++ question
- Replies: 4
- Views: 456
- Sat Apr 14, 2007 4:23 pm
- Forum: Beginners Help
- Topic: Basic C++ question
- Replies: 4
- Views: 456
Basic C++ question
Hello everyone, when i realised that one single .cpp file won't work for a game, i started to make an enemy class like this :
Enemy.h
#ifndef Enemy_h
#define Enemy_h
class Enemy {
irr::scene::IAnimatedMeshSceneNode Node;
public:
void setNode (irr::scene::IAnimatedMeshSceneNode *node);
irr ...
Enemy.h
#ifndef Enemy_h
#define Enemy_h
class Enemy {
irr::scene::IAnimatedMeshSceneNode Node;
public:
void setNode (irr::scene::IAnimatedMeshSceneNode *node);
irr ...