new feature: mouse support

This commit is contained in:
Andrzej Rybczak
2009-05-25 21:46:36 +02:00
parent dd266b0103
commit d965f4e517
22 changed files with 370 additions and 1 deletions

View File

@@ -468,6 +468,8 @@ string Window::GetString(const string &base, size_t length, size_t width, bool e
switch (input)
{
case ERR:
case KEY_MOUSE:
break;
case KEY_UP:
if (itsHistory && !encrypted && history_offset > 0)
{
@@ -634,6 +636,11 @@ int Window::Y() const
return itsY;
}
bool Window::hasCoords(int &x, int &y)
{
return wmouse_trafo(itsWindow, &y, &x, 0);
}
void Window::Scrollable(bool scrollable) const
{
scrollok(itsWindow, scrollable);