BlitzCoder Essentials
•
Home Page
•
About BlitzCoder
•
Contributors
•
Terms of Use
•
Email Us
Main Areas
•
BlitzCoder Chat
•
Discussions
•
Articles/Tutorials
•
Code Database
•
Link Database
•
Showcase Area
•
Worklogs
•
Competitions
Special Areas
•
Undocumented
Other Blitz Sites
•
Blitz Basic Home
•
Blitz Showcase
•
BlitzPlay Library
Forum Login
Username:
Password:
•
Register Now!
BlitzCoder Code Archives Page
Main Codes Page
"Faster Mouse Speed"
, by agent4125
Increase the speed of the mouse pointer
Code
Graphics 800, 600, 16, 1 ; this code only works for speeds >= 1.0 (default speed) ; I'm sure there are better ways of doing this, but this is fairly simple ; 1.0 = normal ; 2.0 = double speed MOUSE_SPEED# = 1.2 SCREEN_X = GraphicsWidth() - 1 SCREEN_Y = GraphicsHeight() - 1 While Not KeyDown(1) ; When checking for collisions, use pointerX and Y, not MouseX() and MouseY() pointerX = MouseX() * MOUSE_SPEED# pointerY = MouseY() * MOUSE_SPEED# ; Screen boundaries If pointerX > SCREEN_X Then pointerX = SCREEN_X : MoveMouse(SCREEN_X / MOUSE_SPEED#, MouseY()) If pointerY > SCREEN_Y Then pointerY = SCREEN_Y : MoveMouse(MouseX(), SCREEN_Y / MOUSE_SPEED#) SetBuffer BackBuffer() Cls Color 255, 255, 255 Rect pointerX, pointerY, 1, 1, True Flip Wend
Copyright(c) 2000-2004, BlitzCoder. All Rights Reserved.
Code software created by Krylar's Kreations