Lines Matching refs:event

237         BridgeInputEvent event{timestamp, -1, InputEventType::KEY, {}};  in KeyEvent()
238 event.key = {scanCode, state, serial}; in KeyEvent()
239 return event; in KeyEvent()
243 BridgeInputEvent event{timestamp, -1, InputEventType::KEY_MODIFIERS, {}}; in KeyModifiersEvent()
244 event.meta = {modifiers}; in KeyModifiersEvent()
245 return event; in KeyModifiersEvent()
250 BridgeInputEvent event{timestamp, -1, type, {}};
251 event.pointer = {x, y, discrete};
252 return event;
256 BridgeInputEvent event{timestamp, -1, InputEventType::POINTER_BUTTON, {}}; in PointerButtonEvent()
257 event.button = {code, state}; in PointerButtonEvent()
258 return event; in PointerButtonEvent()
266 BridgeInputEvent event{timestamp, -1, InputEventType::GESTURE_PINCH_UPDATE, {}}; in PinchUpdateEvent()
267 event.gesture_pinch.scale = scale; in PinchUpdateEvent()
268 return event; in PinchUpdateEvent()
272 BridgeInputEvent event{timestamp, -1, InputEventType::GESTURE_PINCH_END, {}}; in PinchEndEvent()
273 event.gesture.cancelled = cancelled; in PinchEndEvent()
274 return event; in PinchEndEvent()
278 BridgeInputEvent event{timestamp, -1, InputEventType::GESTURE_SWIPE_BEGIN, {}}; in SwipeBeginEvent()
279 event.gesture.fingers = fingers; in SwipeBeginEvent()
280 return event; in SwipeBeginEvent()
284 BridgeInputEvent event{timestamp, -1, InputEventType::GESTURE_SWIPE_UPDATE, {}}; in SwipeUpdateEvent()
285 event.gesture_swipe.dx = dx; in SwipeUpdateEvent()
286 event.gesture_swipe.dy = dy; in SwipeUpdateEvent()
287 return event; in SwipeUpdateEvent()
291 BridgeInputEvent event{timestamp, -1, InputEventType::GESTURE_SWIPE_END, {}}; in SwipeEndEvent()
292 event.gesture.cancelled = cancelled; in SwipeEndEvent()
293 return event; in SwipeEndEvent()
297 BridgeInputEvent event{0, -1, InputEventType::GAMEPAD_CONNECTED, {}}; in GamepadConnectedEvent()
298 event.gamepad.id = id; in GamepadConnectedEvent()
299 return event; in GamepadConnectedEvent()
303 BridgeInputEvent event{0, -1, InputEventType::GAMEPAD_DISCONNECTED, {}}; in GamepadDisconnectedEvent()
304 event.gamepad.id = id; in GamepadDisconnectedEvent()
305 return event; in GamepadDisconnectedEvent()
310 BridgeInputEvent event{timestamp, -1, InputEventType::GAMEPAD_AXIS, {}}; in GamepadAxisEvent()
311 event.gamepad.id = id; in GamepadAxisEvent()
312 event.gamepad.axis = axis; in GamepadAxisEvent()
313 event.gamepad.value = value; in GamepadAxisEvent()
314 return event; in GamepadAxisEvent()
319 BridgeInputEvent event{timestamp, -1, InputEventType::GAMEPAD_BUTTON, {}}; in GamepadButtonEvent()
320 event.gamepad.id = id; in GamepadButtonEvent()
321 event.gamepad.button = button; in GamepadButtonEvent()
322 event.gamepad.pressed = pressed; in GamepadButtonEvent()
323 event.gamepad.value = value; in GamepadButtonEvent()
324 return event; in GamepadButtonEvent()
328 BridgeInputEvent event{timestamp, -1, InputEventType::GAMEPAD_FRAME, {}}; in GamepadFrameEvent()
329 event.gamepad.id = id; in GamepadFrameEvent()
330 return event; in GamepadFrameEvent()
334 BridgeInputEvent event{timestamp, -1, InputEventType::SWITCH, {}}; in SwitchEvent()
335 event.switches.switchCode = switchCode; in SwitchEvent()
336 event.switches.state = state; in SwitchEvent()
337 return event; in SwitchEvent()