| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are met: | 5 * modification, are permitted provided that the following conditions are met: |
| 6 * | 6 * |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 const DoubleVector& axes() const { return m_axes; } | 65 const DoubleVector& axes() const { return m_axes; } |
| 66 void setAxes(unsigned count, const double* data); | 66 void setAxes(unsigned count, const double* data); |
| 67 | 67 |
| 68 const GamepadButtonVector& buttons() const { return m_buttons; } | 68 const GamepadButtonVector& buttons() const { return m_buttons; } |
| 69 void setButtons(unsigned count, const WebGamepadButton* data); | 69 void setButtons(unsigned count, const WebGamepadButton* data); |
| 70 | 70 |
| 71 GamepadPose* pose() const { return m_pose; } | 71 GamepadPose* pose() const { return m_pose; } |
| 72 void setPose(const WebGamepadPose&); | 72 void setPose(const WebGamepadPose&); |
| 73 | 73 |
| 74 const String& hand() const { return m_hand; } |
| 75 void setHand(const WebGamepadHand&); |
| 76 |
| 74 DECLARE_TRACE(); | 77 DECLARE_TRACE(); |
| 75 | 78 |
| 76 private: | 79 private: |
| 77 Gamepad(); | 80 Gamepad(); |
| 78 | 81 |
| 79 String m_id; | 82 String m_id; |
| 80 unsigned m_index; | 83 unsigned m_index; |
| 81 bool m_connected; | 84 bool m_connected; |
| 82 unsigned long long m_timestamp; | 85 unsigned long long m_timestamp; |
| 83 String m_mapping; | 86 String m_mapping; |
| 84 DoubleVector m_axes; | 87 DoubleVector m_axes; |
| 85 GamepadButtonVector m_buttons; | 88 GamepadButtonVector m_buttons; |
| 86 Member<GamepadPose> m_pose; | 89 Member<GamepadPose> m_pose; |
| 90 String m_hand; |
| 87 }; | 91 }; |
| 88 | 92 |
| 89 } // namespace blink | 93 } // namespace blink |
| 90 | 94 |
| 91 #endif // Gamepad_h | 95 #endif // Gamepad_h |
| OLD | NEW |