Search found 7 matches
- Wed Oct 13, 2010 10:36 am
- Forum: Beginners Help
- Topic: Complete event handler
- Replies: 18
- Views: 2014
or should I put in this thread? please post here, that way future questions have the answers all in one place. ok, I'm divide your code to .h and .cpp here it's .h #ifndef __frameListener_h__ #define __frameListener_h__ #include <irrlicht.h> using namespace irr; using namespace core; using namespac...
- Mon Oct 11, 2010 2:31 pm
- Forum: Beginners Help
- Topic: Complete event handler
- Replies: 18
- Views: 2014
- Mon Oct 11, 2010 1:22 pm
- Forum: Beginners Help
- Topic: Complete event handler
- Replies: 18
- Views: 2014
You don't need a compiler for that :) if (keyState[e.KeyInput.Key] != DOWN) // true if PRESSED keyState[e.KeyInput.Key] = PRESSED; else if (keyState[e.KeyInput.Key] == PRESSED) // so this is never executed keyState[e.KeyInput.Key] = DOWN; That's probably what you want: if (keyState[e.KeyInput.Key] ...
- Mon Oct 11, 2010 12:07 pm
- Forum: Beginners Help
- Topic: Complete event handler
- Replies: 18
- Views: 2014
- Mon Oct 11, 2010 11:31 am
- Forum: Beginners Help
- Topic: Complete event handler
- Replies: 18
- Views: 2014
- Mon Oct 11, 2010 8:38 am
- Forum: Beginners Help
- Topic: Complete event handler
- Replies: 18
- Views: 2014
hey Seven, I'm test your code, and I think there is a bug, what different between isKeyDown() and IsKeyPressed() ?? isKeyPressed give the same result as isKeyDown, it should be doing the action 1x not like as isKeyDown that doing the action every frame, I test your code using this: if (mReceiver->Is...
- Wed Oct 06, 2010 3:51 pm
- Forum: Beginners Help
- Topic: Complete event handler
- Replies: 18
- Views: 2014