Mouse position: Difference between revisions
Content deleted Content added
m →{{header|Rust}}: Update to Rust 0.9 |
|||
Line 653:
Prints current location of the mouse cursor relative to any active window.
This example relies on the Windows API.
<lang Rust>//
use std::libc
use std::ptr::mut_null;
type HWND = HANDLE;
Line 669 ⟶ 668:
#[link_name = "user32"]
extern "system" {
}
|