diff options
Diffstat (limited to 'src/search/SearchView.cpp')
| -rw-r--r-- | src/search/SearchView.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/search/SearchView.cpp b/src/search/SearchView.cpp index 5bcbe06..4b9b6b2 100644 --- a/src/search/SearchView.cpp +++ b/src/search/SearchView.cpp @@ -241,3 +241,19 @@ void SearchView::OnTick(float dt) { c->Update(); } + +void SearchView::OnMouseWheel(int x, int y, int d) +{ + if(!d) + return; + if(d<0) + c->NextPage(); + else + c->PrevPage(); +} +void SearchView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt) +{ + if(key==KEY_ESCAPE) + c->Exit(); +} + |
