Search found 18 matches

by keynet
Tue Aug 28, 2012 5:13 am
Forum: Beginners Help
Topic: How can I make just one MessageBox on the device?
Replies: 2
Views: 339

Re: How can I make just one MessageBox on the device?

Oh... I just solved this by checking focus of GUIEnv...
by keynet
Tue Aug 28, 2012 3:17 am
Forum: Beginners Help
Topic: How can I make just one MessageBox on the device?
Replies: 2
Views: 339

How can I make just one MessageBox on the device?

Hi.

Now, my program shows a message box when certain event occurred. For example, when edit box has nothing, input return key, or user clicks some button, etc.

To give feedback to user, I make a message box; therefore, since the message box is modal, the program should ignore all the other events ...
by keynet
Thu Aug 23, 2012 1:15 pm
Forum: Beginners Help
Topic: EventReceive catches events so fast
Replies: 1
Views: 287

EventReceive catches events so fast

Hi.
I made a simple chatting program, and it gets key inputs using IEventReceiver.

When event.KeyInput.Key is irr::KEY_RETURN and event.KeyInput.PressDown is set, the program send chat message to sever and clear the edit box's text.
And it checks this event while dev->run() which of FPS is set to ...
by keynet
Thu Aug 23, 2012 11:22 am
Forum: Beginners Help
Topic: How can I prevent user from typing other language?
Replies: 2
Views: 325

Re: How can I prevent user from typing other language?

Oh.. so there is no way to prevent this as Engine level?

I mean, actually, I wanted to use some language-constraining function belonging to IGUIEditBox class...

Anyway, thanks a lot. I already solved this using isAlphabet() function for each wchat_t character
by keynet
Thu Aug 23, 2012 10:02 am
Forum: Beginners Help
Topic: How can I prevent user from typing other language?
Replies: 2
Views: 325

How can I prevent user from typing other language?

Hi.

Since I'm Korean, I modified irrlicht so that the program can get other language, not just English, using IME.

But in my program, especially the Login and Register UI, it needs to be constraint user's input: it should be only English, and space, special character(ex.@#$!@#... etc), Korean ...
by keynet
Thu Aug 23, 2012 9:55 am
Forum: Beginners Help
Topic: how can i close the console window?
Replies: 2
Views: 268

Re: how can i close the console window?

Thank you so much!!!! I solved it!!!
by keynet
Thu Aug 23, 2012 8:29 am
Forum: Beginners Help
Topic: how can i close the console window?
Replies: 2
Views: 268

how can i close the console window?

when I running the Irrlicht device, whether it is released version or debugging version, the console window always remains.

But I don't want to keep console open when irrDevice is running.

How can I get rid of this?
by keynet
Wed Aug 22, 2012 6:22 am
Forum: Beginners Help
Topic: How can I get exit event from MessageBox?
Replies: 1
Views: 455

How can I get exit event from MessageBox?

Hi.

I added a message box into current GUIEnvironment, using dev->getGUIEnvironment()->addMessageBox(...);

What I want to do is that if user clicks OK button of message box, then some event( ex. set focus of GUIEnvironment to other element, etc.) occurs.

So I made codes like below :


...
dev ...
by keynet
Tue Aug 21, 2012 9:33 am
Forum: Beginners Help
Topic: Why irrDevice still exits even I call closeDevice()?
Replies: 5
Views: 589

Re: Why irrDevice still exits even I call closeDevice()?

Oh I solved it... the problem was I didn't call clearSystemMessages() before or after calling closeDevice()!!!!!!! Holy poop

It seems if I don't call clearSystemMessages() , then irrDevice falls into infinite waiting status for some events(ex.GUI or Key Input) so that the closeDevice() couldn't ...
by keynet
Mon Aug 20, 2012 3:23 pm
Forum: Beginners Help
Topic: Why irrDevice still exits even I call closeDevice()?
Replies: 5
Views: 589

Why irrDevice still exits even I call closeDevice()?

Hi.

I have a little problem as I explained in the subject.

Even I call closeDevice() (I tried drop() function, too) after while(dev->run() { ] is end, the irrDevice does not disappear..

It remains like an dead window(you know, the classic MS window error that makes staircase (am I using this ...
by keynet
Fri Aug 17, 2012 9:18 am
Forum: Beginners Help
Topic: How can I prevent user from pushing the close window button?
Replies: 1
Views: 279

How can I prevent user from pushing the close window button?

When the irrDevice is run(), it can closed by pushing the close window button on the upper right window(the X button)

But I want to get rid of this button so that user cannot close the window by pushing the button. I only want to let the window close when certain event happens.
But I cannot find ...
by keynet
Fri Aug 17, 2012 2:11 am
Forum: Beginners Help
Topic: What is difference between closeDevice() and drop() ?
Replies: 4
Views: 451

Re: What is difference between closeDevice() and drop() ?

Oh I see.. I got it briefly.

Then what function do I have to use to wake up the closed device (the IrrDevice that called device->closeDevice()) ?
I mean, after I call closeDevice(), how can I make device->run() returns true to render the device?
Or should I just create a new device even I only ...
by keynet
Thu Aug 16, 2012 1:09 pm
Forum: Beginners Help
Topic: What is difference between closeDevice() and drop() ?
Replies: 4
Views: 451

What is difference between closeDevice() and drop() ?

Hi. I have a simple(but maybe complex) question about IrrDevice.

As the topic subject, what is the difference between IrrDevice->closeDevice() and IrrDevice->drop() ?

In my project, I used closeDevice() when certain button(ex.QUIT or EXIT button) GUI Event occurs,

and used drop() after while ...
by keynet
Wed Aug 01, 2012 11:53 am
Forum: Beginners Help
Topic: Why Key input event occurs twice?
Replies: 2
Views: 485

Re: Why Key input event occurs twice?

Oh I solved it. My problem was that it checks user's key input and move character in OnEvent Function.

After I moved the MoveCharacter() function in while(dev->run()), it gets exactly one input!

Thank you
by keynet
Wed Aug 01, 2012 11:15 am
Forum: Beginners Help
Topic: Why Key input event occurs twice?
Replies: 2
Views: 485

Why Key input event occurs twice?

I'm using Irrlicht to make a simple 2D game.

Using IEventListener, I'm dealing with key input event so that 2D character can move.
Also, I fixed FPS as 30 FPS using GetTickCount() function, so I can get 30 inputs per second (one input for one frame).

However, I have a problem that irrlicht gets ...