Mouse position: Difference between revisions

Content added Content deleted
No edit summary
m (→‎{{header|Perl}}: Add subsection.)
Line 497: Line 497:


=={{header|Perl}}==
=={{header|Perl}}==
==={{libheader|Perl/SDL}}===
The following code will use the SDL module, a wrapper for the libSDL C-library. When you move the mouse over the created window, the mouse position get printed and the program terminates.
The following code will use the SDL module, a wrapper for the libSDL C-library. When you move the mouse over the created window, the mouse position get printed and the program terminates.
<lang Perl>use SDL;
<lang Perl>use SDL;