Skip to content

Commit

Permalink
touchtest: ignore IsPrimary flag.
Browse files Browse the repository at this point in the history
Some ports may not set this flag.
  • Loading branch information
dsa-t committed Jun 17, 2024
1 parent ae954c4 commit 49ebf05
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions samples/touchtest/touchtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,22 +221,16 @@ void MyFrame::DrawEnd(const wxTouchSequenceId& id, wxPoint pos)

void MyFrame::OnTouchBegin(wxMultiTouchEvent& event)
{
if (event.IsPrimary())
return;
DrawStart(event.GetSequenceId(), event.GetPosition());
}

void MyFrame::OnTouchMove(wxMultiTouchEvent& event)
{
if (event.IsPrimary())
return;
DrawUpdate(event.GetSequenceId(), event.GetPosition());
}

void MyFrame::OnTouchEnd(wxMultiTouchEvent& event)
{
if (event.IsPrimary())
return;
DrawEnd(event.GetSequenceId(), event.GetPosition());
}

Expand Down

0 comments on commit 49ebf05

Please sign in to comment.