Describe the bug (Required)
On mobile devices, specific information within the PlayerAuthInput event does not show. Some examples are delta, most of the directional getInput enums, and the InputFlags seems to be inconsistent.
To Reproduce (Required)
import { MinecraftPacketIds } from "bdsx/bds/packetids";
import { PlayerAuthInputPacket } from "bdsx/bds/packets";
import { events } from "bdsx/event";
events.packetAfter(MinecraftPacketIds.PlayerAuthInput).on((pkt, ni)=> {
const startSprinting = pkt.getInput(PlayerAuthInputPacket.InputData.StartSprinting);
const forward = pkt.getInput(PlayerAuthInputPacket.InputData.Up);
const left = pkt.getInput(PlayerAuthInputPacket.InputData.Left);
const right = pkt.getInput(PlayerAuthInputPacket.InputData.Right);
const backward = pkt.getInput(PlayerAuthInputPacket.InputData.Down);
console.log(startSprinting, forward, left, right, backward);
console.log(pkt.delta)
});
Run the above code, you'll see startSprinting will return the correct value but forward, left, right, and backward always returns false along with almost all of the other directional inputs on mobile devices.
Expected behavior
Return true if a player on iOS or Android moves in the intended direction. Delta should show values other than 0 when moving.
Error logs
e.g. If applicable, add logs to help explain your problem.
Environment
OS: Windows
- OS: [e.g. Windows]
- Server Version: 1.20.61
Additional context
e.g. Add any other context about the problem here.
Describe the bug (Required)
On mobile devices, specific information within the PlayerAuthInput event does not show. Some examples are delta, most of the directional getInput enums, and the InputFlags seems to be inconsistent.
To Reproduce (Required)
import { MinecraftPacketIds } from "bdsx/bds/packetids";
import { PlayerAuthInputPacket } from "bdsx/bds/packets";
import { events } from "bdsx/event";
events.packetAfter(MinecraftPacketIds.PlayerAuthInput).on((pkt, ni)=> {
const startSprinting = pkt.getInput(PlayerAuthInputPacket.InputData.StartSprinting);
const forward = pkt.getInput(PlayerAuthInputPacket.InputData.Up);
const left = pkt.getInput(PlayerAuthInputPacket.InputData.Left);
const right = pkt.getInput(PlayerAuthInputPacket.InputData.Right);
const backward = pkt.getInput(PlayerAuthInputPacket.InputData.Down);
});
Run the above code, you'll see startSprinting will return the correct value but forward, left, right, and backward always returns false along with almost all of the other directional inputs on mobile devices.
Expected behavior
Return true if a player on iOS or Android moves in the intended direction. Delta should show values other than 0 when moving.
Error logs
e.g. If applicable, add logs to help explain your problem.
Environment
OS: Windows
Additional context
e.g. Add any other context about the problem here.