/** * * rct2: 0x006ED801 */ void process_mouse_tool(sint32 x, sint32 y) { if (_inputFlags & INPUT_FLAG_TOOL_ACTIVE) { rct_window* w = window_find_by_number( gCurrentToolWidget.window_classification, gCurrentToolWidget.window_number ); if (!w) tool_cancel(); else window_event_tool_update_call(w, gCurrentToolWidget.widget_index, x, y); } }
/** * * rct2: 0x006ED801 */ void process_mouse_tool(int x, int y) { if (gInputFlags & INPUT_FLAG_TOOL_ACTIVE) { rct_window* w = window_find_by_number( RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWCLASS, rct_windowclass), RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WINDOWNUMBER, rct_windownumber) ); if (!w) tool_cancel(); else window_event_tool_update_call(w, RCT2_GLOBAL(RCT2_ADDRESS_TOOL_WIDGETINDEX, uint16), x, y); } }