Search found 14 matches
- Sat Jul 05, 2014 11:50 pm
- Forum: Beginners Help
- Topic: Event Reciever not responding to GUI Press Event
- Replies: 9
- Views: 1126
Re: Event Reciever not responding to GUI Press Event
Thats the thing, The Gui works on its own, but its only when I added the keys it messed up, removing the keys input restores the gui inputs, and I cant put a breakpoint for when I get a gui event beacuse after some testing I found that the gui event is not being received period, though the gui hover ...
- Sat Jul 05, 2014 1:38 pm
- Forum: Beginners Help
- Topic: Event Reciever not responding to GUI Press Event
- Replies: 9
- Views: 1126
Re: Event Reciever not responding to GUI Press Event
The code I put up before was the shortened version, so you didnt have to scroll through the repetitive steps taken in each case statement, But like I said before, In the actual program, where I didnt cut and paste specific sections, it works great, or at least it should, if you want, I can post the ...
- Sat Jul 05, 2014 3:36 am
- Forum: Beginners Help
- Topic: Event Reciever not responding to GUI Press Event
- Replies: 9
- Views: 1126
Re: Event Reciever not responding to GUI Press Event
class MyEventReceiver : public IEventReceiver
{
int x,y,z;
int new_x,new_y,new_z;
int counter;
public:
MyEventReceiver(SAppContext & context) : Context(context)
{
for (u32 i=0; i<KEY_KEY_CODES_COUNT; ++i)
KeyIsDown[i] = false;
}
virtual bool OnEvent(const SEvent& event)
{
if ...
- Fri Jul 04, 2014 1:41 pm
- Forum: Beginners Help
- Topic: Event Reciever not responding to GUI Press Event
- Replies: 9
- Views: 1126
Re: Event Reciever not responding to GUI Press Event
nothing changed, keyboard keys still worked and gui buttons failed
- Thu Jul 03, 2014 7:46 pm
- Forum: Beginners Help
- Topic: Event Reciever not responding to GUI Press Event
- Replies: 9
- Views: 1126
Event Reciever not responding to GUI Press Event
So the basic problem is that in my event receiver, I have 2 if statements for events, key presses and gui button presses, however, only only the key press events are working, I have tried searching it up online, but the only solution I could find was to change "return true" to "return false", which ...
- Thu Jun 19, 2014 12:34 am
- Forum: Beginners Help
- Topic: Event Reciever not recieving GUI buttons
- Replies: 7
- Views: 595
Re: Event Reciever not recieving GUI buttons
ok, I think the problem is this
virtual bool IsKeyDown(EKEY_CODE keyCode) const
{
return KeyIsDown[keyCode];
}
i tested it with a simple print statement, and it seems to run all the time, so I am guessing I have to change this, probobly to a switch case statement with each key, and do their ...
virtual bool IsKeyDown(EKEY_CODE keyCode) const
{
return KeyIsDown[keyCode];
}
i tested it with a simple print statement, and it seems to run all the time, so I am guessing I have to change this, probobly to a switch case statement with each key, and do their ...
- Thu Jun 19, 2014 12:14 am
- Forum: Beginners Help
- Topic: Event Reciever not recieving GUI buttons
- Replies: 7
- Views: 595
Re: Event Reciever not recieving GUI buttons
ok, I thought I was doing something wrong, but setting the parent did not fix the problem, the button still doesnt trigger the response even with the parent set, I since it worked before I put in the keyboard keys events, that something i added messed it up, would setting the receiver mess it up ...
- Wed Jun 18, 2014 9:44 pm
- Forum: Beginners Help
- Topic: Event Reciever not recieving GUI buttons
- Replies: 7
- Views: 595
Re: Event Reciever not recieving GUI buttons
that didnt seem to work, says IGUIEnviroment has not member called getrootguielement(), I assume gui is device->getGuiEnviroment, I hope that i am reading that right, about the parent, I admit i dont know much about it, do all my buttons need a parent linking them together?
- Wed Jun 18, 2014 8:39 pm
- Forum: Beginners Help
- Topic: Event Reciever not recieving GUI buttons
- Replies: 7
- Views: 595
Event Reciever not recieving GUI buttons
Hi, I recently added key inputs to my event reciever, but now clicking the gui buttons (both of which do the same thing), does not work, and while the keys themself work, the gui event seems to not be acknowledged, any help would be great, I just cant seem to find out what the issue is.
class ...
class ...
- Thu Jun 05, 2014 11:38 pm
- Forum: Beginners Help
- Topic: SceneNodeAnimator hasFinished() issues
- Replies: 1
- Views: 374
SceneNodeAnimator hasFinished() issues
Hi, I am trying to make a loop where the program wont exit the loop until the animation I placed on the camera is done, but I cant seem to get it to work, hasFinished() seems to return 0/false while it is running, but when I put it in a while loop, it simply stops everything and stays stuck in the ...
- Thu May 29, 2014 6:53 pm
- Forum: Beginners Help
- Topic: Drawing Individual GUI Elements
- Replies: 4
- Views: 545
Re: Drawing Individual GUI Elements
Sorry I wasnt clear enough before, I want to only draw some buttons instead of all of them, mostly because the buttons play a little animation of the camera moving from point A to B, but sometimes there is a wall in the way, so I dont want the user to be able to hit the button to go straight if ...
- Thu May 29, 2014 4:24 am
- Forum: Beginners Help
- Topic: Drawing Individual GUI Elements
- Replies: 4
- Views: 545
Drawing Individual GUI Elements
Hi, I am trying to draw individual GUI buttons instead of using device->getGUIEnvironment()->drawAll(), but I can't seem to get it to work, I'm not sure if I am supposed to do button.draw(),button->draw(),button::draw() or draw(button), as all have their own errors and I cant find a example anywhere ...
- Wed May 28, 2014 6:57 pm
- Forum: Beginners Help
- Topic: [Fixed]Animate Moving Camera Node
- Replies: 2
- Views: 457
Re: Animate Moving Camera Node
That doesnt really help for "showing" the motion, as that is what I have been doing, however, you reminded me that I can use functions that the node is derived from, I thus found ISceneNodeAnimator, and createFlyStraghtAnimator, however, the fly straight animator uses constant points, is there a way ...
- Wed May 28, 2014 5:06 am
- Forum: Beginners Help
- Topic: [Fixed]Animate Moving Camera Node
- Replies: 2
- Views: 457
[Fixed]Animate Moving Camera Node
Hi, I am trying to have the camera node (not fps), be animated to show movement along a certain distance once a certain button/action is performed, but I cant think of any good way to do it, any suggestions would be great, thanks in advance!