Graphics::Raylib::Mouse - Deal with Mouse Input
version 0.008
use Graphics::Raylib::Mouse; $mouse = Graphics::Raylib::Mouse->new; # More concise this way if ($mouse->pressed_left) { printf "(%d, %d)\n", $mouse->x, $mouse->y; }
Optional. Returns a Graphics::Raylib::Mouse object that saves you typing that prefix all the time.
Graphics::Raylib::Mouse
Detects if mouse button has been pressed once
Detects if mouse button is down
Detects if mouse button has been released
Detects if mouse button is up
Retrieves cursor position if not in void context. Moves cursor to position if coordinate argument supplied.
Wheel Y-axis movement
http://github.com/athreef/Graphics-Raylib
Graphics-Raylib
Graphics-Raylib-XS
Ahmad Fatoum <athreef@cpan.org>, http://a3f.at
<athreef@cpan.org>
Copyright (C) 2017 Ahmad Fatoum
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Graphics::Raylib, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Graphics::Raylib
CPAN shell
perl -MCPAN -e shell install Graphics::Raylib
For more information on module installation, please visit the detailed CPAN module installation guide.