MCPcopy Create free account
hub / github.com/canonical/mir / pointer_state

Method pointer_state

src/server/input/default_input_device_hub.cpp:638–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638void mi::DefaultInputDeviceHub::RegisteredDevice::pointer_state(MirPointerButtons buttons)
639{
640 if (!seat)
641 BOOST_THROW_EXCEPTION(std::runtime_error("Device not started and has no seat assigned"));
642
643 seat->set_pointer_state(*handle, buttons);
644}
645
646void mi::DefaultInputDeviceHub::add_observer(std::shared_ptr<InputDeviceObserver> const& observer)
647{

Callers

nothing calls this directly

Calls 1

set_pointer_stateMethod · 0.45

Tested by

no test coverage detected