| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "embedders/openglui/common/input_handler.h" | 5 #include "embedders/openglui/common/input_handler.h" |
| 6 #include "embedders/openglui/common/log.h" | 6 #include "embedders/openglui/common/log.h" |
| 7 | 7 |
| 8 InputHandler::InputHandler(VMGlue* vm_glue) | 8 InputHandler::InputHandler(VMGlue* vm_glue) |
| 9 : vm_glue_(vm_glue) { | 9 : vm_glue_(vm_glue) { |
| 10 } | 10 } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 return -1; // TODO(gram): handle this. | 63 return -1; // TODO(gram): handle this. |
| 64 break; | 64 break; |
| 65 default: | 65 default: |
| 66 return -1; | 66 return -1; |
| 67 } | 67 } |
| 68 return vm_glue_->OnKeyEvent(function, when, key_code, | 68 return vm_glue_->OnKeyEvent(function, when, key_code, |
| 69 isAltKeyDown, isCtrlKeyDown, isShiftKeyDown, | 69 isAltKeyDown, isCtrlKeyDown, isShiftKeyDown, |
| 70 repeat); | 70 repeat); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void InputHandler::OnAccelerometerEvent(float x, float y, float z) { |
| 74 vm_glue_->OnAccelerometerEvent(x, y, z); |
| 75 } |
| 76 |
| OLD | NEW |