forked from mia/Aegisub
Use CmdDown in BaseGrid rather than #ifdefs
Originally committed to SVN as r5703.
This commit is contained in:
parent
c199bd6d18
commit
3dc0ed6c56
1 changed files with 3 additions and 7 deletions
|
@ -607,13 +607,9 @@ void BaseGrid::OnMouseEvent(wxMouseEvent &event) {
|
||||||
GetClientSize(&w,&h);
|
GetClientSize(&w,&h);
|
||||||
|
|
||||||
// Modifiers
|
// Modifiers
|
||||||
bool shift = event.m_shiftDown;
|
bool shift = event.ShiftDown();
|
||||||
bool alt = event.m_altDown;
|
bool alt = event.AltDown();
|
||||||
#ifdef __APPLE__
|
bool ctrl = event.CmdDown();
|
||||||
bool ctrl = event.m_metaDown;
|
|
||||||
#else
|
|
||||||
bool ctrl = event.m_controlDown;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Row that mouse is over
|
// Row that mouse is over
|
||||||
bool click = event.LeftDown();
|
bool click = event.LeftDown();
|
||||||
|
|
Loading…
Reference in a new issue