#pragma once typedef struct _object PyObject; namespace UI { class CWindowManager; } namespace ava2 { // `touch` module: lets the mobile HUD place the attack button / joystick area of the native // touch router (src/app/input/touch_router.h) and draw the joystick it drives. void inittouch(); // Long press on an item slot: calls the touch.SetLongPressEvent function with the slot window's // Python object; true when it took the touch. bool RunTouchLongPress(PyObject* slot_window, unsigned long slot_number, unsigned long item_count, long x, long y); // Touch router sink helpers shared by the host loop and tests: // left button up for a finger; afterwards the pointer leaves the screen (a lifted finger does not // hover, so tooltips close) unless an icon is attached and must stay where it was picked up. void TouchUiMouseUp(UI::CWindowManager& wm, long x, long y); // Long press: on an item slot (nothing attached) the pointer rests there, so the original item // tooltip shows, and RunTouchLongPress decides; true when the touch was taken. bool TouchUiLongPress(UI::CWindowManager& wm, long x, long y); }