Mouse position: Difference between revisions
Content added Content deleted
(Added BBC BASIC) |
No edit summary |
||
Line 128: | Line 128: | ||
return 0; |
return 0; |
||
}</lang> |
}</lang> |
||
=={{header|c_sharp|C#}}== |
|||
Writes the absolute Mouse Position of the Screen into the Console |
|||
<lang csharp> |
|||
using System; |
|||
using System.Windows.Forms; |
|||
static class Program |
|||
{ |
|||
[STAThread] |
|||
static void Main() |
|||
{ |
|||
Console.WriteLine(Control.MousePosition.X); |
|||
Console.WriteLine(Control.MousePosition.Y); |
|||
} |
|||
} |
|||
</lang> |
|||
=={{header|Clojure}}== |
=={{header|Clojure}}== |
||
<lang lisp>(let [point (.. java.awt.MouseInfo getPointerInfo getLocation)] [(.getX point) (.getY point)])</lang> |
<lang lisp>(let [point (.. java.awt.MouseInfo getPointerInfo getLocation)] [(.getX point) (.getY point)])</lang> |