RawInputMod icon indicating copy to clipboard operation
RawInputMod copied to clipboard

The mod doesn't seem to work

Open Equbuxu opened this issue 5 years ago • 12 comments

I tried changing mouse sensitivity and doing /rescan but no matter what I can't rotate camera in game

Equbuxu avatar Apr 22 '20 22:04 Equbuxu

Apparently disabling enhanced pointer precision in windows settings makes it work, but the input is very delayed. It could be because my mouse has a report rate of 1000hz

Equbuxu avatar Apr 22 '20 23:04 Equbuxu

Can you tell computer specs and operating system ?

I'm using this on my laptop running Windows 10 and Minecraft 1.8.9 and it works. My mouse is also 1000hz (G402)

xCuri0 avatar Apr 23 '20 02:04 xCuri0

I'm running windows 10 (1903) with ryzen 2700, gtx 1050 ti and 16 gb of ram. My mouse is bloody v8m.

Also, I've just tried running it again and now it doesn't work even with enhanced pointer precision disabled so it might not be related. I also tried loading it both with and without optifine using both multimc and the official launcher, none of this made a difference

Equbuxu avatar Apr 23 '20 06:04 Equbuxu

Do you have any other input devices connected to your computer ? This mod works by scanning all input devices and then using the one moves first so it could be detecting something else. I have to use this method due to how the library used by Minecraft works

xCuri0 avatar Apr 23 '20 17:04 xCuri0

I have a drawing tablet connected but disconnecting it makes no effect.

I ended up building the mod myself and so far I see two issues:

  1. getControllers() (RawInput.java, line 50) function call logs multiple exceptions like INFO: Failed to initialize device Pentablet HID because of: java.io.IOException: Failed to acquire device (8007001e) Pentablet HID is my tablet (which is disconnected). The function still returns a list of devices so this is not the main issue.
  2. The code fails to detect mouse movement most of the time. The while loop keeps running for minutes failing to detect any movement (and keeps spamming the console with exceptions) even though I'm clearly moving my mouse. Sometimes after looping for minutes (sometimes hours) it finally detects the device correctly and it starts working. The input is still delayed, or more precisely it feels like it's not being processed fast enough. When I start moving my mouse the camera starts rotating immediately, but soon after that it starts to lag behind and by the time I have stopped moving my mouse it still moves

Equbuxu avatar Apr 23 '20 22:04 Equbuxu

@BYSTACK have you tried opening Minecraft while not interacting with any other programs ? I have the same issue sometimes and that seems to be the cause of it

xCuri0 avatar Apr 27 '20 12:04 xCuri0

i'm having the exact same issue, moving the mouse does nothing even after /rescan

aidanhasaknife avatar Jun 23 '20 08:06 aidanhasaknife

@Aidan-Lineberry try reconnecting your mouse. i know this mod is really buggy but theres nothing i can about it as this is the only way to get raw input with the libraries included with minecraft.

xCuri0 avatar Jun 23 '20 10:06 xCuri0

Not to sound like an ass, but have you tried seeing if you can embed and include other input libraries into your mod to add true raw input support? For example: https://forums.minecraftforge.net/topic/69903-1122-how-to-include-libraries-jar-files-in-a-build/ https://www.reddit.com/r/feedthebeast/comments/binrr5/how_can_you_add_additional_libraries_to_your/

Enovale avatar Nov 28 '20 00:11 Enovale

@ElijahZAwesome (i sent you a BAT :)

I don't know what you mean by this

Enovale avatar Nov 28 '20 08:11 Enovale

Same exact problem here. Can't rotate camera in game. 1.12 version doesn't work, but 1.8.9 works.

vichvich4444 avatar Dec 07 '20 13:12 vichvich4444

Should be resolved in my pull request, see https://github.com/xCuri0/RawInputMod/pull/2

CAG2Mark avatar May 24 '21 01:05 CAG2Mark