Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: inputengine scroll function  (Read 537 times)
MoonWolf
Customers
Community Member
*****
Posts: 6


« on: July 17, 2007, 04:00:00 AM »

My fault .... solved the error. (doevents was missing causing the clear not function correctly)






Hi,

Im playing around with the input engine and scroll function. It seems like it dosent reset the scroll values. this is an issue since it stores the value to an integer that can overflow(dont realy know it its this causing my crash but?).

I havent found any way to reset the scroll value and when the value reaches about +-120k my program crashes.

im using vs2005(vb.net) and engine 6.3 atm
im also using the option strict so it complains if i redeclare the variables other then what it is intended to be.

example code:
Code:

Structure Mus
        Dim x As Integer
        Dim y As Integer
        Dim b1 As Short
        Dim b2 As Short
        Dim b3 As Short
        Dim Scroll As Integer
End Structure
Dim Mouse As Mus

Inp.GetMouseState(Mouse.x, Mouse.y, Mouse.b1, Mouse.b2, Mouse.b3, Mouse.Scroll)


a nice feature would be to retreve only the last change since last call. Smiley

Regards,
//MoonWolf
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks