summaryrefslogtreecommitdiffstats
path: root/client/inputs_channel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/inputs_channel.cpp')
-rw-r--r--client/inputs_channel.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/inputs_channel.cpp b/client/inputs_channel.cpp
index e1b63964..13f6554a 100644
--- a/client/inputs_channel.cpp
+++ b/client/inputs_channel.cpp
@@ -50,7 +50,8 @@ public:
virtual void response(AbstractProcessLoop& events_loop)
{
- static_cast<Application*>(events_loop.get_owner())->set_inputs_handler(_channel);
+ static_cast<Application*>(events_loop.get_owner())->set_key_handler(_channel);
+ static_cast<Application*>(events_loop.get_owner())->set_mouse_handler(_channel);
AttachFunc func(_channel);
_channel.get_client().for_each_channel(func);
}
@@ -91,7 +92,8 @@ public:
virtual void do_response(AbstractProcessLoop& events_loop)
{
- static_cast<Application*>(events_loop.get_owner())->remove_inputs_handler(_channel);
+ static_cast<Application*>(events_loop.get_owner())->remove_key_handler(_channel);
+ static_cast<Application*>(events_loop.get_owner())->remove_mouse_handler(_channel);
DetachFunc detach_func;
_channel.get_client().for_each_channel(detach_func);
}