MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / onScrollMouseDown

Function onScrollMouseDown

src/OpenLoco/src/Ui/Windows/KeyboardShortcuts.cpp:263–273  ·  view source on GitHub ↗

0x004BE87B

Source from the content-addressed store, hash-verified

261
262 // 0x004BE87B
263 static void onScrollMouseDown(Ui::Window& self, [[maybe_unused]] int16_t x, int16_t y, [[maybe_unused]] uint8_t scroll_index)
264 {
265 auto row = y / kRowHeight;
266
267 if (row >= self.rowCount)
268 {
269 return;
270 }
271
272 EditKeyboardShortcut::open(row);
273 }
274
275 static constexpr WindowEventList kEvents = {
276 .onMouseUp = onMouseUp,

Callers

nothing calls this directly

Calls 1

openFunction · 0.70

Tested by

no test coverage detected