Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (763)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (852)
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 4498 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: 1041
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  

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

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

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

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

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

nelsongames (1058 views)
2018-04-24 18:14:32

ivj94 (1637 views)
2018-03-24 14:47:39

ivj94 (562 views)
2018-03-24 14:46:31

ivj94 (1451 views)
2018-03-24 14:43:53

Solater (567 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!