diff options
author | Michaël Burtin <mburtin@gmail.com> | 2011-07-29 14:25:47 +0200 |
---|---|---|
committer | Michaël Burtin <mburtin@gmail.com> | 2011-07-29 15:28:02 +0200 |
commit | 5aa3d79025c6565ee274945a032a269fc86db85f (patch) | |
tree | 60d3d4e4fea00938b0808a336737a5e2666af70a /opengl/tests/gl_basic/gl_basic.cpp | |
parent | 7c95ffbbccb34bdcc90017affd4a324b5ace0c4b (diff) |
Fix getSwitchState according to device capabilities.
When querying switch state for a given device id, ensure that the device
exposes the given switch in its capabilities, report AKEY_STATE_UNKNOWN
otherwise.
This fix a bug in InputManager that reports an incorrect switch state
(down) when a device exposes at least one switch in its capabilites and
another switch is queried. For example, this can leads in always
reporting LID state open (SW_LID down) if only SW_HEADPHONE_INSERT is
exposed in capabilities.
Change-Id: I4e5265ec02af918c317673789e7948529842aa2d
Signed-off-by: Michaël Burtin <mburtin@gmail.com>
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions