* small style cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23422 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -531,10 +531,9 @@ interpret_mouse_buffer(hid_device_info *device)
|
||||
|
||||
memset(&info, 0, sizeof(info));
|
||||
for (i = 0; i < device->num_insns; i++) {
|
||||
const report_insn *insn = &device->insns [i];
|
||||
int32 value =
|
||||
(((report [insn->byte_idx + 1] << 8) |
|
||||
report [insn->byte_idx]) >> insn->bit_pos)
|
||||
const report_insn *insn = &device->insns[i];
|
||||
int32 value = (((report[insn->byte_idx + 1] << 8)
|
||||
| report[insn->byte_idx]) >> insn->bit_pos)
|
||||
& ((1 << insn->num_bits) - 1);
|
||||
|
||||
if (insn->usage_page == USAGE_PAGE_BUTTON) {
|
||||
|
||||
Reference in New Issue
Block a user