Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (780)
Games in Android Showcase (233)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Raw Mouse Input pre-acceleration?  (Read 4677 times)
0 Members and 1 Guest are viewing this topic.
Offline JJ3d

Innocent Bystander

Exp: 17 years

« Posted 2015-03-03 03:43:25 »

I'm using JInput indirectly though jMonkey, and I'm seeing lag and other artifacts from what I believe is JInput sending me events after windows has applied acceleration and smoothing.  Is there a way to obtain real, actual Raw physical input from the low level mouse drivers?  I've done a little bit of experimentation such as using "-Djinput.useDefaultPlugin=false" but I believe I'm still getting numbers after the acceleration and smoothing.  The evidence I have comes in the form of a small experiment where I print the absolute (cumulative) effect of all mouse movement events.  With this program running, I do the following:

1.  Move the mouse quickly left.
2.  Move the mouse slowly right.
3.  Repeat.

After just a couple of iterations, the absolute X position becomes increasingly negative.  If I then reverse the directions (fast right, slow left) the number starts to creep positive.  To me this is good evidence that acceleration is being applied.

Again, I don't have a small pure JInput program I can share, but such an experiment should be easy to construct.  I am fully aware that I can disable mouse acceleration myself with Windows control panel (or registry changes).  What I would really like to do is ensure that if I produce a game it *always* gets raw mouse input regardless of what the user's environment looks like.

Any pointers would be greatly appreciated.
Offline princec

« JGO Spiffy Duke »

Medals: 1061
Projects: 3
Exp: 20 years

Eh? Who? What? ... Me?

« Reply #1 - Posted 2015-03-03 08:07:46 »

I had this same issue and unfortunately there isn't a workaround available AFAIK (at least not since I last properly investigated ~4 years ago).

Cas Smiley

Pages: [1]
  ignore  |  Print  

hadezbladez (728 views)
2018-11-16 13:46:03

hadezbladez (363 views)
2018-11-16 13:41:33

hadezbladez (715 views)
2018-11-16 13:35:35

hadezbladez (179 views)
2018-11-16 13:32:03

EgonOlsen (2375 views)
2018-06-10 19:43:48

EgonOlsen (2528 views)
2018-06-10 19:43:44

EgonOlsen (1466 views)
2018-06-10 19:43:20

DesertCoockie (2132 views)
2018-05-13 18:23:11

nelsongames (1928 views)
2018-04-24 18:15:36

nelsongames (2601 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!