Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

PlayerAuthInputPacket Mobile Bug #476

@PrimeStrat

Description

@PrimeStrat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions