NAME
XAS::Lib::Curses::Unix - A mixin class for Curses on Unix
DESCRIPTION
This is the mixin class for working with Curses on Linux\Unix.
METHODS
In the following methods: $kernel, $session and $heap are standard variables from POE.
startup($kernel, $session, $heap)
This will initialize the screen and keyboard.
keyin($kernel)
This does nothing.
get_mouse_event
This will parse the mouse eventx and return the following variables.
- $id
-
This is the id of the event, this is always 0.
- $x
-
The position of the mouse on the X axis of the screen.
- $y
-
The position of the mouse on the Y axis of the screen.
- $z
-
Not, sure, but it is always 0.
- $bstate
-
The state of the mouse.
handle_mounse_event($id, $x, $y, $z, $bstate, $heap)
This will take $id, $x, $y, $z, $bstate and $heap variable and create the appropriate event to dispatch within Curses::Toolkit.
SEE ALSO
AUTHOR
Kevin L. Esteb, <kevin@kesteb.us>
COPYRIGHT AND LICENSE
Copyright (C) 2014 Kevin L. Esteb
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
See http://dev.perl.org/licenses/ for more information.