We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cfc8a6 commit 95c3c3eCopy full SHA for 95c3c3e
Packages/com.unity.inputsystem/InputSystem/Devices/Keyboard.cs
@@ -1115,8 +1115,8 @@ public void SetIMEEnabled(bool enabled)
1115
/// void Update ()
1116
/// {
1117
/// // Set the IME cursor position to the mouse position
1118
- /// var x = Input.GetAxis("Mouse X");
1119
- /// var y = Input.GetAxis("Mouse Y");
+ /// var x = Mouse.current.position.x.ReadValue();
+ /// var y = Mouse.current.position.y.ReadValue();
1120
/// cursorPosition = new Vector2(x, y);
1121
/// Keyboard.current.SetIMECursorPosition(cursorPosition);
1122
/// }
0 commit comments