VivecraftMod icon indicating copy to clipboard operation
VivecraftMod copied to clipboard

Feature Suggestion: Remember cursor position before GUI interaction or revert to 0° of Line of Sight (Sitting Mode)

Open abrossimow opened this issue 9 months ago • 2 comments

Right now, in sitting mode, the cursor position resets to pitch 0° (or whatever the internal forward vector is) upon closing a GUI element in game. This assumes vanilla inventory GUI behavior (so opening straight to camera, not above block). An alternative behavior for QoL would be to save the cursor position upon opening a GUI element and reverting to that position after closing the GUI again.

Example: you interact with a chest on floor level. You look down and have to click down. You sort the inventory by dragging items around. Your active mouse cursor hence is pointing somewhere around 45° pitch down, as is your head probably. Close the inventory. You head is still looking down, but the mouse cursor/crosshair reverts to 0° down, so about 45° pitch above your current line of sight.

So either regular behavior for the crosshair should be 0° pitch based on current line of sight of HMD or last cursor position before opening GUI element.

It may be opinionated, but still I'd like to discuss it. Addition: I am playing on 1.20.1(Fabric).

abrossimow avatar Mar 28 '25 07:03 abrossimow

just to be sure, are you talking about yaw(left/right) or pitch(up/down)

fayer3 avatar Mar 28 '25 11:03 fayer3

I am talking about pitch. I am sorry, I don't know where my head was.

abrossimow avatar Mar 28 '25 14:03 abrossimow