[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src client.cxx,1.33,1.34
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src client.cxx,1.33,1.34 |
Date: |
30 Oct 2002 09:34:24 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv20879
Modified Files:
client.cxx
Log Message:
hooked up action up/down events
Index: client.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/client.cxx,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- client.cxx 29 Oct 2002 12:47:55 -0000 1.33
+++ client.cxx 30 Oct 2002 09:34:22 -0000 1.34
@@ -126,9 +126,21 @@
case Input::ButtonEventType:
{
Input::ButtonEvent* ev = dynamic_cast<Input::ButtonEvent*
const>(*i);
- if (ev->name >= Input::action_1 && ev->name <= Input::action_10)
+
+ if (ev->state == Input::pressed)
{
- button_panel->set_button(ev->name - Input::action_1);
+ if (ev->name >= Input::action_1 && ev->name <=
Input::action_10)
+ {
+ button_panel->set_button(ev->name - Input::action_1);
+ }
+ else if (ev->name == Input::action_down)
+ {
+ button_panel->next_action();
+ }
+ else if (ev->name == Input::action_up)
+ {
+ button_panel->previous_action();
+ }
}
}
break;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src client.cxx,1.33,1.34,
grumbel <=