MCPcopy Create free account
hub / github.com/NetHack/NetHack / mousePressEvent

Method mousePressEvent

win/Qt/qt_map.cpp:450–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450void NetHackQtMapViewport::mousePressEvent(QMouseEvent* event)
451{
452 clicksink.Put(event->pos().x() / qt_settings->glyphs().width(),
453 event->pos().y() / qt_settings->glyphs().height(),
454 (event->button() == Qt::LeftButton) ? CLICK_1 : CLICK_2);
455 qApp->exit();
456}
457
458void NetHackQtMapViewport::updateTiles()
459{

Callers

nothing calls this directly

Calls 3

PutMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected