MCPcopy Create free account
hub / github.com/axmolengine/axmol / checkMouseButton

Function checkMouseButton

core/platform/winrt/RenderViewImpl-winrt.cpp:52–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50static RenderViewImpl* s_renderView = nullptr;
51
52static EventMouse::MouseButton checkMouseButton(Windows::UI::Core::PointerEventArgs const& args)
53{
54 if (args.CurrentPoint().Properties().IsLeftButtonPressed())
55 {
56 return EventMouse::MouseButton::BUTTON_LEFT;
57 }
58 else if (args.CurrentPoint().Properties().IsRightButtonPressed())
59 {
60 return EventMouse::MouseButton::BUTTON_RIGHT;
61 }
62 else if (args.CurrentPoint().Properties().IsMiddleButtonPressed())
63 {
64 return EventMouse::MouseButton::BUTTON_MIDDLE;
65 }
66 return EventMouse::MouseButton::BUTTON_UNSET;
67}
68
69RenderViewImpl* RenderViewImpl::create(std::string_view viewName)
70{

Callers 2

OnMouseMovedMethod · 0.70
OnMouseWheelChangedMethod · 0.70

Calls 1

PropertiesMethod · 0.80

Tested by

no test coverage detected