Historique des modifications - Message

Message #4805

Sujet: C++ Autre camera a la 3eme persone


TypeDateAuteurContenu
Dernière modification11-11-2008 13:29:00pspmy


event.hmain.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __EVENT__
#define __EVENT__

#include <irr/irrlicht.h>

using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace gui;
using namespace io;

class MyReceiver : public IEventReceiver
{
    public:
        virtual bool OnEvent(const SEvent& event)
        {
            if(event.EventType == irr::EET_KEY_INPUT_EVENT)
	    {
	        keys[event.KeyInput.Key] = event.KeyInput.PressedDown;
		return false;
	    }
            return false;
        }

        bool keys[KEY_KEY_CODES_COUNT];
};

#endif

Voila si vous avez des question demander !!
Création du message11-11-2008 13:28:23hardcpp


event.hmain.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __EVENT__
#define __EVENT__

#include <irr/irrlicht.h>

using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace gui;
using namespace io;

class MyReceiver : public IEventReceiver
{
    public:
        virtual bool OnEvent(const SEvent& event)
        {
            if(event.EventType == irr::EET_KEY_INPUT_EVENT)
	    {
	        keys[event.KeyInput.Key] = event.KeyInput.PressedDown;
		return false;
	    }
            return false;
        }

        bool keys[KEY_KEY_CODES_COUNT];
};

#endif

Voila si vous avez des question demander !!

Retour

OptionsLiens officielsCaractéristiquesStatistiquesCommunauté
Préférences cookies
Corrections
irrlicht
irrklang
irredit
irrxml
Propulsé par Django
xhtml 1.0
css 2.1
884 membres
1441 sujets
11339 messages
Dernier membre inscrit: Saidov17
262 invités en ligne
membre en ligne: -
RSS Feed