Index: remoting/client/input_handler.cc |
diff --git a/remoting/client/input_handler.cc b/remoting/client/input_handler.cc |
index 7b48d89d94f6162ca995f5c4251b76c4acf01f6e..48beddedd523414cad69cfb65da912424c3d306d 100644 |
--- a/remoting/client/input_handler.cc |
+++ b/remoting/client/input_handler.cc |
@@ -62,6 +62,16 @@ void InputHandler::SendMouseButtonEvent(bool button_down, |
} |
} |
+void InputHandler::SendMouseWheelEvent(int dx, int dy) { |
+ protocol::InputStub* stub = connection_->input_stub(); |
+ if (stub) { |
+ MouseEvent event; |
+ event.set_wheel_offset_x(dx); |
+ event.set_wheel_offset_y(dy); |
+ stub->InjectMouseEvent(event); |
+ } |
+} |
+ |
void InputHandler::ReleaseAllKeys() { |
std::set<int> pressed_keys_copy = pressed_keys_; |
std::set<int>::iterator i; |