Search found 8 matches

by bigzpanda
Sat Dec 22, 2007 2:17 pm
Forum: Beginners Help
Topic: Keyboard input
Replies: 7
Views: 525

I know how to declare a variable as global and I had written exactly the same code. In fact, I've been trapped with your code: debuginput->setText(theString.c_str()); This doesn't work, because setText must have a wchar_t for its parameter. The working code is swprintf(input, 100, L"%s", k...
by bigzpanda
Sat Dec 22, 2007 11:50 am
Forum: Beginners Help
Topic: Keyboard input
Replies: 7
Views: 525

Good morning mqrk, I've been trying to declare debuginput as global, but with any method, I get an error. Could you make me an example of what you mean in this snippet ? #include "global.h" #include "fonctions.h" stringc theString; class TraitementDesMessages : public IEventRecei...
by bigzpanda
Fri Dec 21, 2007 9:27 pm
Forum: Beginners Help
Topic: I NEED HELP!
Replies: 10
Views: 322

Copy the file Irrlicht.lib in the same directory that your executable.
by bigzpanda
Fri Dec 21, 2007 9:15 pm
Forum: Beginners Help
Topic: I NEED HELP!
Replies: 10
Views: 322

Maybe you should try to add these namespaces:

Code: Select all

using namespace core;

using namespace scene;

using namespace video;

using namespace io;

using namespace gui;

by bigzpanda
Fri Dec 21, 2007 9:10 pm
Forum: Beginners Help
Topic: I NEED HELP!
Replies: 10
Views: 322

Could we see your main.cpp file ?
by bigzpanda
Fri Dec 21, 2007 1:24 pm
Forum: Beginners Help
Topic: Keyboard input
Replies: 7
Views: 525

Hi Acki and thank you for the help. Since that point, i have no problem, but what I don't understand is: debuginput->setText(theString.c_str()); I can't use debuginput and this function, because I declare them after, in the main function: int main(void) { ... IGUIStaticText *debuginput = gui->addSta...
by bigzpanda
Fri Dec 21, 2007 11:50 am
Forum: Beginners Help
Topic: How to close a application on macos
Replies: 7
Views: 577

I do this in my events class: virtual bool OnEvent(SEvent event) { if (event.EventType == EET_KEY_INPUT_EVENT && event.KeyInput.PressedDown) { switch(event.KeyInput.Key) { case KEY_ESCAPE: quit=1; break; } return true; } } And this in my render loop: while (device->run() && quit==0) ...
by bigzpanda
Fri Dec 21, 2007 11:43 am
Forum: Beginners Help
Topic: Keyboard input
Replies: 7
Views: 525

Keyboard input

Good morning, I've just discovered Irrlicht and my first questions are coming. :) I would like to get to keyboard entry and put it into a statictext. const char* input; stringc charconvert; class TraitementDesMessages : public IEventReceiver { public: virtual bool OnEvent(SEvent event) { if (event.E...