Historique des modifications - Message

Message #4805

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


Type Date Auteur Contenu
Dernière modification 11-11-2008 13:29:00 pspmy


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 message 11-11-2008 13:28:23 hardcpp


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

Options Liens officiels Caractéristiques Statistiques Communauté
Préférences cookies
Corrections
irrlicht
irrklang
irredit
irrxml
Propulsé par Django
xhtml 1.0
css 2.1
884 membres
1440 sujets
11337 messages
Dernier membre inscrit: Saidov17
156 invités en ligne
membre en ligne: -
RSS Feed