|
|
|
|
|
|
PointerData synthesized_hover_event = pointer_data; |
|
|
|
synthesized_hover_event.change = PointerData::Change::kHover; |
|
|
|
synthesized_hover_event.synthesized = 1; |
|
|
|
synthesized_hover_event.buttons = state.buttons; |
|
|
|
} else { |
|
|
|
UpdateDeltaAndState(pointer_data, state); |
|
|
|
|
|
|
|
|
|
|
|
UpdatePointerIdentifier(pointer_data, state, true); |
|
|
|
state.isDown = true; |
|
|
|
states_[pointer_data.device] = state; |
|
|
|
|
|
|
PointerData synthesized_move_event = pointer_data; |
|
|
|
synthesized_move_event.change = PointerData::Change::kMove; |
|
|
|
synthesized_move_event.synthesized = 1; |
|
|
|
synthesized_move_event.buttons = state.buttons; |
|
|
|
} else { |
|
|
|
UpdateDeltaAndState(pointer_data, state); |
|
|
|
|
|
|
|
|
|
|
|
state.isDown = false; |
|
|
|
states_[pointer_data.device] = state; |
|
|
|
converted_pointers.push_back(pointer_data); |
|
|
|
|
|
|
PointerState state; |
|
|
|
state.pointer_identifier = 0; |
|
|
|
state.isDown = false; |
|
|
|
state.buttons = pointer_data.buttons; |
|
|
|
state.physical_x = pointer_data.physical_x; |
|
|
|
state.physical_y = pointer_data.physical_y; |
|
|
|
states_[pointer_data.device] = state; |
|
|
|
|
|
|
PointerState& state) { |
|
|
|
pointer_data.physical_delta_x = pointer_data.physical_x - state.physical_x; |
|
|
|
pointer_data.physical_delta_y = pointer_data.physical_y - state.physical_y; |
|
|
|
state.buttons = pointer_data.buttons; |
|
|
|
state.physical_x = pointer_data.physical_x; |
|
|
|
state.physical_y = pointer_data.physical_y; |
|
|
|
states_[pointer_data.device] = state; |
|
|
|