Thanks for the thought Geekmaster, but I'm equally new to C, so I'll stick to python for now.
Fantastic W126 - didn't realise getting the mouse pos was that easy!
I like the idea of speeding up the mouse refresh rate, that makes a lot of sense. Originally, I was planning to pan the screen around with the mouse. I know this will be incompatible with your idea, but for those wanting a bigger desktop, here's the code to insert...
Code:
memory.SelectObject(bitmap)
# beginning of inserted code
offsetx=0
offsety=0
pos=wx.GetMousePosition()
if pos.x>w/2:
offsetx+=pos.x-w/2
if pos.x>screenw-w/2:
offsetx=screenw-w
if pos.y>h/2:
offsety+=pos.y-h/2
if pos.y>screenh-h/2:
offsety=screenh-h
memory.Blit(0, 0, w, h, context, offsetx, offsety)
(cw,ch)=memory.GetTextExtent('>X<')
memory.DrawText('>X<',(pos.x-cw/2)-offsetx, (pos.y-ch/2)-offsety)
# end of inserted code
memory.SelectObject(wx.NullBitmap)
You'll also need to add the following above it...
Code:
w,h=(706,600)
# beginning of inserted code
# your actual monitor resolution
screenw,screenh=(1280,720)
# end of inserted code
#width and height of capture region
Admittedly, it's more than a little clunky like that but if you need a bigger screen, or even to get those few pixels to the right that can't be shown on an 800x600 screen.
Nice!