Documentation
¶
Index ¶
- Variables
- type AxisBinding
- func (m *AxisBinding) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *AxisBinding) CloneVT() *AxisBinding
- func (this *AxisBinding) EqualMessageVT(thatMsg any) bool
- func (this *AxisBinding) EqualVT(that *AxisBinding) bool
- func (x *AxisBinding) GetAxis() CommandAxis
- func (x *AxisBinding) GetGamepad() GamepadAxis
- func (x *AxisBinding) GetInvert() bool
- func (x *AxisBinding) GetRaw() uint32
- func (x *AxisBinding) MarshalJSON() ([]byte, error)
- func (x *AxisBinding) MarshalProtoJSON(s *json.MarshalState)
- func (x *AxisBinding) MarshalProtoText() string
- func (m *AxisBinding) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AxisBinding) MarshalToVT(dAtA []byte) (int, error)
- func (m *AxisBinding) MarshalVT() (dAtA []byte, err error)
- func (*AxisBinding) ProtoMessage()
- func (x *AxisBinding) Reset()
- func (m *AxisBinding) SizeVT() (n int)
- func (x *AxisBinding) String() string
- func (x *AxisBinding) UnmarshalJSON(b []byte) error
- func (x *AxisBinding) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *AxisBinding) UnmarshalVT(dAtA []byte) error
- type AxisThreshold
- func (m *AxisThreshold) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *AxisThreshold) CloneVT() *AxisThreshold
- func (this *AxisThreshold) EqualMessageVT(thatMsg any) bool
- func (this *AxisThreshold) EqualVT(that *AxisThreshold) bool
- func (x *AxisThreshold) GetDirection() ThresholdDirection
- func (x *AxisThreshold) GetGamepad() GamepadAxis
- func (x *AxisThreshold) GetHysteresis() float32
- func (x *AxisThreshold) GetRaw() uint32
- func (x *AxisThreshold) GetThreshold() float32
- func (x *AxisThreshold) MarshalJSON() ([]byte, error)
- func (x *AxisThreshold) MarshalProtoJSON(s *json.MarshalState)
- func (x *AxisThreshold) MarshalProtoText() string
- func (m *AxisThreshold) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *AxisThreshold) MarshalToVT(dAtA []byte) (int, error)
- func (m *AxisThreshold) MarshalVT() (dAtA []byte, err error)
- func (*AxisThreshold) ProtoMessage()
- func (x *AxisThreshold) Reset()
- func (m *AxisThreshold) SizeVT() (n int)
- func (x *AxisThreshold) String() string
- func (x *AxisThreshold) UnmarshalJSON(b []byte) error
- func (x *AxisThreshold) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *AxisThreshold) UnmarshalVT(dAtA []byte) error
- type ButtonBinding
- func (m *ButtonBinding) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ButtonBinding) CloneVT() *ButtonBinding
- func (this *ButtonBinding) EqualMessageVT(thatMsg any) bool
- func (this *ButtonBinding) EqualVT(that *ButtonBinding) bool
- func (x *ButtonBinding) GetBits() uint64
- func (x *ButtonBinding) GetGamepad() GamepadButton
- func (x *ButtonBinding) GetHat() *HatPosition
- func (x *ButtonBinding) GetRaw() uint32
- func (x *ButtonBinding) GetThreshold() *AxisThreshold
- func (x *ButtonBinding) MarshalJSON() ([]byte, error)
- func (x *ButtonBinding) MarshalProtoJSON(s *json.MarshalState)
- func (x *ButtonBinding) MarshalProtoText() string
- func (m *ButtonBinding) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ButtonBinding) MarshalToVT(dAtA []byte) (int, error)
- func (m *ButtonBinding) MarshalVT() (dAtA []byte, err error)
- func (*ButtonBinding) ProtoMessage()
- func (x *ButtonBinding) Reset()
- func (m *ButtonBinding) SizeVT() (n int)
- func (x *ButtonBinding) String() string
- func (x *ButtonBinding) UnmarshalJSON(b []byte) error
- func (x *ButtonBinding) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ButtonBinding) UnmarshalVT(dAtA []byte) error
- type CommandAxis
- func (x CommandAxis) Enum() *CommandAxis
- func (x CommandAxis) MarshalJSON() ([]byte, error)
- func (x CommandAxis) MarshalProtoJSON(s *json.MarshalState)
- func (x CommandAxis) MarshalProtoText() string
- func (x CommandAxis) MarshalText() ([]byte, error)
- func (x CommandAxis) String() string
- func (x *CommandAxis) UnmarshalJSON(b []byte) error
- func (x *CommandAxis) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *CommandAxis) UnmarshalText(b []byte) error
- type CommandBinding
- func (m *CommandBinding) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *CommandBinding) CloneVT() *CommandBinding
- func (this *CommandBinding) EqualMessageVT(thatMsg any) bool
- func (this *CommandBinding) EqualVT(that *CommandBinding) bool
- func (x *CommandBinding) GetAxes() []*AxisBinding
- func (x *CommandBinding) GetButtons() []*ButtonBinding
- func (x *CommandBinding) GetGuid() string
- func (x *CommandBinding) GetMarker() uint64
- func (x *CommandBinding) MarshalJSON() ([]byte, error)
- func (x *CommandBinding) MarshalProtoJSON(s *json.MarshalState)
- func (x *CommandBinding) MarshalProtoText() string
- func (m *CommandBinding) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CommandBinding) MarshalToVT(dAtA []byte) (int, error)
- func (m *CommandBinding) MarshalVT() (dAtA []byte, err error)
- func (*CommandBinding) ProtoMessage()
- func (x *CommandBinding) Reset()
- func (m *CommandBinding) SizeVT() (n int)
- func (x *CommandBinding) String() string
- func (x *CommandBinding) UnmarshalJSON(b []byte) error
- func (x *CommandBinding) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *CommandBinding) UnmarshalVT(dAtA []byte) error
- type Controller
- func (m *Controller) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Controller) CloneVT() *Controller
- func (this *Controller) EqualMessageVT(thatMsg any) bool
- func (this *Controller) EqualVT(that *Controller) bool
- func (x *Controller) GetInfo() *ControllerInfo
- func (x *Controller) GetState() *ControllerState
- func (x *Controller) MarshalJSON() ([]byte, error)
- func (x *Controller) MarshalProtoJSON(s *json.MarshalState)
- func (x *Controller) MarshalProtoText() string
- func (m *Controller) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Controller) MarshalToVT(dAtA []byte) (int, error)
- func (m *Controller) MarshalVT() (dAtA []byte, err error)
- func (*Controller) ProtoMessage()
- func (x *Controller) Reset()
- func (m *Controller) SizeVT() (n int)
- func (x *Controller) String() string
- func (x *Controller) UnmarshalJSON(b []byte) error
- func (x *Controller) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Controller) UnmarshalVT(dAtA []byte) error
- type ControllerFrame
- func (m *ControllerFrame) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ControllerFrame) CloneVT() *ControllerFrame
- func (this *ControllerFrame) EqualMessageVT(thatMsg any) bool
- func (this *ControllerFrame) EqualVT(that *ControllerFrame) bool
- func (x *ControllerFrame) GetAdded() []*ControllerInfo
- func (x *ControllerFrame) GetChanged() []*ControllerState
- func (x *ControllerFrame) GetEpoch() uint32
- func (x *ControllerFrame) GetFocused() bool
- func (x *ControllerFrame) GetFull() bool
- func (x *ControllerFrame) GetReader() ControllerReader
- func (x *ControllerFrame) GetReason() string
- func (x *ControllerFrame) GetRemoved() []uint32
- func (x *ControllerFrame) MarshalJSON() ([]byte, error)
- func (x *ControllerFrame) MarshalProtoJSON(s *json.MarshalState)
- func (x *ControllerFrame) MarshalProtoText() string
- func (m *ControllerFrame) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ControllerFrame) MarshalToVT(dAtA []byte) (int, error)
- func (m *ControllerFrame) MarshalVT() (dAtA []byte, err error)
- func (*ControllerFrame) ProtoMessage()
- func (x *ControllerFrame) Reset()
- func (m *ControllerFrame) SizeVT() (n int)
- func (x *ControllerFrame) String() string
- func (x *ControllerFrame) UnmarshalJSON(b []byte) error
- func (x *ControllerFrame) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ControllerFrame) UnmarshalVT(dAtA []byte) error
- type ControllerFrames
- func (m *ControllerFrames) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ControllerFrames) CloneVT() *ControllerFrames
- func (this *ControllerFrames) EqualMessageVT(thatMsg any) bool
- func (this *ControllerFrames) EqualVT(that *ControllerFrames) bool
- func (x *ControllerFrames) GetEnded() bool
- func (x *ControllerFrames) GetFrames() []*ControllerFrame
- func (x *ControllerFrames) GetPlayer() int32
- func (x *ControllerFrames) MarshalJSON() ([]byte, error)
- func (x *ControllerFrames) MarshalProtoJSON(s *json.MarshalState)
- func (x *ControllerFrames) MarshalProtoText() string
- func (m *ControllerFrames) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ControllerFrames) MarshalToVT(dAtA []byte) (int, error)
- func (m *ControllerFrames) MarshalVT() (dAtA []byte, err error)
- func (*ControllerFrames) ProtoMessage()
- func (x *ControllerFrames) Reset()
- func (m *ControllerFrames) SizeVT() (n int)
- func (x *ControllerFrames) String() string
- func (x *ControllerFrames) UnmarshalJSON(b []byte) error
- func (x *ControllerFrames) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ControllerFrames) UnmarshalVT(dAtA []byte) error
- type ControllerInfo
- func (m *ControllerInfo) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ControllerInfo) CloneVT() *ControllerInfo
- func (this *ControllerInfo) EqualMessageVT(thatMsg any) bool
- func (this *ControllerInfo) EqualVT(that *ControllerInfo) bool
- func (x *ControllerInfo) GetAxes() uint32
- func (x *ControllerInfo) GetButtons() uint32
- func (x *ControllerInfo) GetGamepad() bool
- func (x *ControllerInfo) GetGuid() string
- func (x *ControllerInfo) GetHats() uint32
- func (x *ControllerInfo) GetId() uint32
- func (x *ControllerInfo) GetName() string
- func (x *ControllerInfo) GetProduct() uint32
- func (x *ControllerInfo) GetVendor() uint32
- func (x *ControllerInfo) MarshalJSON() ([]byte, error)
- func (x *ControllerInfo) MarshalProtoJSON(s *json.MarshalState)
- func (x *ControllerInfo) MarshalProtoText() string
- func (m *ControllerInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ControllerInfo) MarshalToVT(dAtA []byte) (int, error)
- func (m *ControllerInfo) MarshalVT() (dAtA []byte, err error)
- func (*ControllerInfo) ProtoMessage()
- func (x *ControllerInfo) Reset()
- func (m *ControllerInfo) SizeVT() (n int)
- func (x *ControllerInfo) String() string
- func (x *ControllerInfo) UnmarshalJSON(b []byte) error
- func (x *ControllerInfo) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ControllerInfo) UnmarshalVT(dAtA []byte) error
- type ControllerReader
- func (x ControllerReader) Enum() *ControllerReader
- func (x ControllerReader) MarshalJSON() ([]byte, error)
- func (x ControllerReader) MarshalProtoJSON(s *json.MarshalState)
- func (x ControllerReader) MarshalProtoText() string
- func (x ControllerReader) MarshalText() ([]byte, error)
- func (x ControllerReader) String() string
- func (x *ControllerReader) UnmarshalJSON(b []byte) error
- func (x *ControllerReader) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *ControllerReader) UnmarshalText(b []byte) error
- type ControllerState
- func (m *ControllerState) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ControllerState) CloneVT() *ControllerState
- func (this *ControllerState) EqualMessageVT(thatMsg any) bool
- func (this *ControllerState) EqualVT(that *ControllerState) bool
- func (x *ControllerState) GetAxes() []float32
- func (x *ControllerState) GetButtons() []bool
- func (x *ControllerState) GetGamepad() *Gamepad
- func (x *ControllerState) GetHats() []uint32
- func (x *ControllerState) GetId() uint32
- func (x *ControllerState) GetPressed() []uint32
- func (x *ControllerState) GetReleased() []uint32
- func (x *ControllerState) MarshalJSON() ([]byte, error)
- func (x *ControllerState) MarshalProtoJSON(s *json.MarshalState)
- func (x *ControllerState) MarshalProtoText() string
- func (m *ControllerState) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ControllerState) MarshalToVT(dAtA []byte) (int, error)
- func (m *ControllerState) MarshalVT() (dAtA []byte, err error)
- func (*ControllerState) ProtoMessage()
- func (x *ControllerState) Reset()
- func (m *ControllerState) SizeVT() (n int)
- func (x *ControllerState) String() string
- func (x *ControllerState) UnmarshalJSON(b []byte) error
- func (x *ControllerState) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ControllerState) UnmarshalVT(dAtA []byte) error
- type ControllerStream
- func (x ControllerStream) Enum() *ControllerStream
- func (x ControllerStream) MarshalJSON() ([]byte, error)
- func (x ControllerStream) MarshalProtoJSON(s *json.MarshalState)
- func (x ControllerStream) MarshalProtoText() string
- func (x ControllerStream) MarshalText() ([]byte, error)
- func (x ControllerStream) String() string
- func (x *ControllerStream) UnmarshalJSON(b []byte) error
- func (x *ControllerStream) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *ControllerStream) UnmarshalText(b []byte) error
- type ControllerWant
- func (m *ControllerWant) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ControllerWant) CloneVT() *ControllerWant
- func (this *ControllerWant) EqualMessageVT(thatMsg any) bool
- func (this *ControllerWant) EqualVT(that *ControllerWant) bool
- func (x *ControllerWant) GetBinding() *CommandBinding
- func (x *ControllerWant) GetEpoch() uint32
- func (x *ControllerWant) GetPlayer() int32
- func (x *ControllerWant) MarshalJSON() ([]byte, error)
- func (x *ControllerWant) MarshalProtoJSON(s *json.MarshalState)
- func (x *ControllerWant) MarshalProtoText() string
- func (m *ControllerWant) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ControllerWant) MarshalToVT(dAtA []byte) (int, error)
- func (m *ControllerWant) MarshalVT() (dAtA []byte, err error)
- func (*ControllerWant) ProtoMessage()
- func (x *ControllerWant) Reset()
- func (m *ControllerWant) SizeVT() (n int)
- func (x *ControllerWant) String() string
- func (x *ControllerWant) UnmarshalJSON(b []byte) error
- func (x *ControllerWant) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ControllerWant) UnmarshalVT(dAtA []byte) error
- type ControllerWants
- func (m *ControllerWants) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *ControllerWants) CloneVT() *ControllerWants
- func (this *ControllerWants) EqualMessageVT(thatMsg any) bool
- func (this *ControllerWants) EqualVT(that *ControllerWants) bool
- func (x *ControllerWants) GetWants() []*ControllerWant
- func (x *ControllerWants) MarshalJSON() ([]byte, error)
- func (x *ControllerWants) MarshalProtoJSON(s *json.MarshalState)
- func (x *ControllerWants) MarshalProtoText() string
- func (m *ControllerWants) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ControllerWants) MarshalToVT(dAtA []byte) (int, error)
- func (m *ControllerWants) MarshalVT() (dAtA []byte, err error)
- func (*ControllerWants) ProtoMessage()
- func (x *ControllerWants) Reset()
- func (m *ControllerWants) SizeVT() (n int)
- func (x *ControllerWants) String() string
- func (x *ControllerWants) UnmarshalJSON(b []byte) error
- func (x *ControllerWants) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *ControllerWants) UnmarshalVT(dAtA []byte) error
- type Gamepad
- func (m *Gamepad) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *Gamepad) CloneVT() *Gamepad
- func (this *Gamepad) EqualMessageVT(thatMsg any) bool
- func (this *Gamepad) EqualVT(that *Gamepad) bool
- func (x *Gamepad) GetHeld() []GamepadButton
- func (x *Gamepad) GetLeftTrigger() float32
- func (x *Gamepad) GetLeftX() float32
- func (x *Gamepad) GetLeftY() float32
- func (x *Gamepad) GetPressed() []GamepadButton
- func (x *Gamepad) GetReleased() []GamepadButton
- func (x *Gamepad) GetRightTrigger() float32
- func (x *Gamepad) GetRightX() float32
- func (x *Gamepad) GetRightY() float32
- func (x *Gamepad) MarshalJSON() ([]byte, error)
- func (x *Gamepad) MarshalProtoJSON(s *json.MarshalState)
- func (x *Gamepad) MarshalProtoText() string
- func (m *Gamepad) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Gamepad) MarshalToVT(dAtA []byte) (int, error)
- func (m *Gamepad) MarshalVT() (dAtA []byte, err error)
- func (*Gamepad) ProtoMessage()
- func (x *Gamepad) Reset()
- func (m *Gamepad) SizeVT() (n int)
- func (x *Gamepad) String() string
- func (x *Gamepad) UnmarshalJSON(b []byte) error
- func (x *Gamepad) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *Gamepad) UnmarshalVT(dAtA []byte) error
- type GamepadAxis
- func (x GamepadAxis) Enum() *GamepadAxis
- func (x GamepadAxis) MarshalJSON() ([]byte, error)
- func (x GamepadAxis) MarshalProtoJSON(s *json.MarshalState)
- func (x GamepadAxis) MarshalProtoText() string
- func (x GamepadAxis) MarshalText() ([]byte, error)
- func (x GamepadAxis) String() string
- func (x *GamepadAxis) UnmarshalJSON(b []byte) error
- func (x *GamepadAxis) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *GamepadAxis) UnmarshalText(b []byte) error
- type GamepadButton
- func (x GamepadButton) Enum() *GamepadButton
- func (x GamepadButton) MarshalJSON() ([]byte, error)
- func (x GamepadButton) MarshalProtoJSON(s *json.MarshalState)
- func (x GamepadButton) MarshalProtoText() string
- func (x GamepadButton) MarshalText() ([]byte, error)
- func (x GamepadButton) String() string
- func (x *GamepadButton) UnmarshalJSON(b []byte) error
- func (x *GamepadButton) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *GamepadButton) UnmarshalText(b []byte) error
- type HatPosition
- func (m *HatPosition) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *HatPosition) CloneVT() *HatPosition
- func (this *HatPosition) EqualMessageVT(thatMsg any) bool
- func (this *HatPosition) EqualVT(that *HatPosition) bool
- func (x *HatPosition) GetHat() uint32
- func (x *HatPosition) GetMask() uint32
- func (x *HatPosition) MarshalJSON() ([]byte, error)
- func (x *HatPosition) MarshalProtoJSON(s *json.MarshalState)
- func (x *HatPosition) MarshalProtoText() string
- func (m *HatPosition) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HatPosition) MarshalToVT(dAtA []byte) (int, error)
- func (m *HatPosition) MarshalVT() (dAtA []byte, err error)
- func (*HatPosition) ProtoMessage()
- func (x *HatPosition) Reset()
- func (m *HatPosition) SizeVT() (n int)
- func (x *HatPosition) String() string
- func (x *HatPosition) UnmarshalJSON(b []byte) error
- func (x *HatPosition) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *HatPosition) UnmarshalVT(dAtA []byte) error
- type PlayerControllers
- func (m *PlayerControllers) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *PlayerControllers) CloneVT() *PlayerControllers
- func (this *PlayerControllers) EqualMessageVT(thatMsg any) bool
- func (this *PlayerControllers) EqualVT(that *PlayerControllers) bool
- func (x *PlayerControllers) GetControllers() []*Controller
- func (x *PlayerControllers) GetPlayer() int32
- func (x *PlayerControllers) GetReason() string
- func (x *PlayerControllers) GetStream() ControllerStream
- func (x *PlayerControllers) MarshalJSON() ([]byte, error)
- func (x *PlayerControllers) MarshalProtoJSON(s *json.MarshalState)
- func (x *PlayerControllers) MarshalProtoText() string
- func (m *PlayerControllers) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PlayerControllers) MarshalToVT(dAtA []byte) (int, error)
- func (m *PlayerControllers) MarshalVT() (dAtA []byte, err error)
- func (*PlayerControllers) ProtoMessage()
- func (x *PlayerControllers) Reset()
- func (m *PlayerControllers) SizeVT() (n int)
- func (x *PlayerControllers) String() string
- func (x *PlayerControllers) UnmarshalJSON(b []byte) error
- func (x *PlayerControllers) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *PlayerControllers) UnmarshalVT(dAtA []byte) error
- type ThresholdDirection
- func (x ThresholdDirection) Enum() *ThresholdDirection
- func (x ThresholdDirection) MarshalJSON() ([]byte, error)
- func (x ThresholdDirection) MarshalProtoJSON(s *json.MarshalState)
- func (x ThresholdDirection) MarshalProtoText() string
- func (x ThresholdDirection) MarshalText() ([]byte, error)
- func (x ThresholdDirection) String() string
- func (x *ThresholdDirection) UnmarshalJSON(b []byte) error
- func (x *ThresholdDirection) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (x *ThresholdDirection) UnmarshalText(b []byte) error
- type WatchControllersRequest
- func (m *WatchControllersRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *WatchControllersRequest) CloneVT() *WatchControllersRequest
- func (this *WatchControllersRequest) EqualMessageVT(thatMsg any) bool
- func (this *WatchControllersRequest) EqualVT(that *WatchControllersRequest) bool
- func (x *WatchControllersRequest) GetBinding() *CommandBinding
- func (x *WatchControllersRequest) GetPlayer() int32
- func (x *WatchControllersRequest) GetWatch() bool
- func (x *WatchControllersRequest) MarshalJSON() ([]byte, error)
- func (x *WatchControllersRequest) MarshalProtoJSON(s *json.MarshalState)
- func (x *WatchControllersRequest) MarshalProtoText() string
- func (m *WatchControllersRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *WatchControllersRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *WatchControllersRequest) MarshalVT() (dAtA []byte, err error)
- func (*WatchControllersRequest) ProtoMessage()
- func (x *WatchControllersRequest) Reset()
- func (m *WatchControllersRequest) SizeVT() (n int)
- func (x *WatchControllersRequest) String() string
- func (x *WatchControllersRequest) UnmarshalJSON(b []byte) error
- func (x *WatchControllersRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *WatchControllersRequest) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ControllerStream_name = map[int32]string{ 0: "CONTROLLER_STREAM_UNKNOWN", 1: "CONTROLLER_STREAM_NONE", 2: "CONTROLLER_STREAM_LIVE", 3: "CONTROLLER_STREAM_UNFOCUSED", 4: "CONTROLLER_STREAM_STALE", 5: "CONTROLLER_STREAM_OPENING", 6: "CONTROLLER_STREAM_UNAVAILABLE", } ControllerStream_value = map[string]int32{ "CONTROLLER_STREAM_UNKNOWN": 0, "CONTROLLER_STREAM_NONE": 1, "CONTROLLER_STREAM_LIVE": 2, "CONTROLLER_STREAM_UNFOCUSED": 3, "CONTROLLER_STREAM_STALE": 4, "CONTROLLER_STREAM_OPENING": 5, "CONTROLLER_STREAM_UNAVAILABLE": 6, } )
Enum value maps for ControllerStream.
var ( ControllerReader_name = map[int32]string{ 0: "CONTROLLER_READER_READING", 1: "CONTROLLER_READER_OPENING", 2: "CONTROLLER_READER_UNAVAILABLE", } ControllerReader_value = map[string]int32{ "CONTROLLER_READER_READING": 0, "CONTROLLER_READER_OPENING": 1, "CONTROLLER_READER_UNAVAILABLE": 2, } )
Enum value maps for ControllerReader.
var ( GamepadButton_name = map[int32]string{ 0: "GAMEPAD_BUTTON_UNKNOWN", 1: "GAMEPAD_BUTTON_SOUTH", 2: "GAMEPAD_BUTTON_EAST", 3: "GAMEPAD_BUTTON_WEST", 4: "GAMEPAD_BUTTON_NORTH", 5: "GAMEPAD_BUTTON_BACK", 6: "GAMEPAD_BUTTON_GUIDE", 7: "GAMEPAD_BUTTON_START", 8: "GAMEPAD_BUTTON_LEFT_STICK", 9: "GAMEPAD_BUTTON_RIGHT_STICK", 10: "GAMEPAD_BUTTON_LEFT_SHOULDER", 11: "GAMEPAD_BUTTON_RIGHT_SHOULDER", 12: "GAMEPAD_BUTTON_DPAD_UP", 13: "GAMEPAD_BUTTON_DPAD_DOWN", 14: "GAMEPAD_BUTTON_DPAD_LEFT", 15: "GAMEPAD_BUTTON_DPAD_RIGHT", 16: "GAMEPAD_BUTTON_MISC", 17: "GAMEPAD_BUTTON_TOUCHPAD", } GamepadButton_value = map[string]int32{ "GAMEPAD_BUTTON_UNKNOWN": 0, "GAMEPAD_BUTTON_SOUTH": 1, "GAMEPAD_BUTTON_EAST": 2, "GAMEPAD_BUTTON_WEST": 3, "GAMEPAD_BUTTON_NORTH": 4, "GAMEPAD_BUTTON_BACK": 5, "GAMEPAD_BUTTON_GUIDE": 6, "GAMEPAD_BUTTON_START": 7, "GAMEPAD_BUTTON_LEFT_STICK": 8, "GAMEPAD_BUTTON_RIGHT_STICK": 9, "GAMEPAD_BUTTON_LEFT_SHOULDER": 10, "GAMEPAD_BUTTON_RIGHT_SHOULDER": 11, "GAMEPAD_BUTTON_DPAD_UP": 12, "GAMEPAD_BUTTON_DPAD_DOWN": 13, "GAMEPAD_BUTTON_DPAD_LEFT": 14, "GAMEPAD_BUTTON_DPAD_RIGHT": 15, "GAMEPAD_BUTTON_MISC": 16, "GAMEPAD_BUTTON_TOUCHPAD": 17, } )
Enum value maps for GamepadButton.
var ( CommandAxis_name = map[int32]string{ 0: "COMMAND_AXIS_UNKNOWN", 1: "COMMAND_AXIS_FORWARD", 2: "COMMAND_AXIS_LEFT", 3: "COMMAND_AXIS_UP", 4: "COMMAND_AXIS_ROLL", } CommandAxis_value = map[string]int32{ "COMMAND_AXIS_UNKNOWN": 0, "COMMAND_AXIS_FORWARD": 1, "COMMAND_AXIS_LEFT": 2, "COMMAND_AXIS_UP": 3, "COMMAND_AXIS_ROLL": 4, } )
Enum value maps for CommandAxis.
var ( GamepadAxis_name = map[int32]string{ 0: "GAMEPAD_AXIS_UNKNOWN", 1: "GAMEPAD_AXIS_LEFT_X", 2: "GAMEPAD_AXIS_LEFT_Y", 3: "GAMEPAD_AXIS_RIGHT_X", 4: "GAMEPAD_AXIS_RIGHT_Y", 5: "GAMEPAD_AXIS_LEFT_TRIGGER", 6: "GAMEPAD_AXIS_RIGHT_TRIGGER", } GamepadAxis_value = map[string]int32{ "GAMEPAD_AXIS_UNKNOWN": 0, "GAMEPAD_AXIS_LEFT_X": 1, "GAMEPAD_AXIS_LEFT_Y": 2, "GAMEPAD_AXIS_RIGHT_X": 3, "GAMEPAD_AXIS_RIGHT_Y": 4, "GAMEPAD_AXIS_LEFT_TRIGGER": 5, "GAMEPAD_AXIS_RIGHT_TRIGGER": 6, } )
Enum value maps for GamepadAxis.
var ( ThresholdDirection_name = map[int32]string{ 0: "THRESHOLD_DIRECTION_UNKNOWN", 1: "THRESHOLD_DIRECTION_ABOVE", 2: "THRESHOLD_DIRECTION_BELOW", } ThresholdDirection_value = map[string]int32{ "THRESHOLD_DIRECTION_UNKNOWN": 0, "THRESHOLD_DIRECTION_ABOVE": 1, "THRESHOLD_DIRECTION_BELOW": 2, } )
Enum value maps for ThresholdDirection.
Functions ¶
This section is empty.
Types ¶
type AxisBinding ¶
type AxisBinding struct {
// Axis is the command field the value goes to.
Axis CommandAxis `protobuf:"varint,1,opt,name=axis,proto3" json:"axis,omitempty"`
// Raw is the index of a raw axis in ControllerState's axes. A radio
// transmitter's channels are its raw axes.
Raw *uint32 `protobuf:"varint,2,opt,name=raw,proto3,oneof" json:"raw,omitempty"`
// Gamepad is an axis of the gamepad layer, -1 to 1, or 0 to 1 for a
// trigger.
Gamepad *GamepadAxis `protobuf:"varint,3,opt,name=gamepad,proto3,oneof" json:"gamepad,omitempty"`
// Invert negates the value.
Invert *bool `protobuf:"varint,4,opt,name=invert,proto3,oneof" json:"invert,omitempty"`
// contains filtered or unexported fields
}
AxisBinding drives one command axis from one device axis: a raw axis or an axis of the gamepad layer. Exactly one of Raw and Gamepad is set; an entry with neither or both is ignored.
func (*AxisBinding) CloneMessageVT ¶
func (m *AxisBinding) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*AxisBinding) CloneVT ¶
func (m *AxisBinding) CloneVT() *AxisBinding
func (*AxisBinding) EqualMessageVT ¶
func (this *AxisBinding) EqualMessageVT(thatMsg any) bool
func (*AxisBinding) EqualVT ¶
func (this *AxisBinding) EqualVT(that *AxisBinding) bool
func (*AxisBinding) GetAxis ¶
func (x *AxisBinding) GetAxis() CommandAxis
func (*AxisBinding) GetGamepad ¶
func (x *AxisBinding) GetGamepad() GamepadAxis
func (*AxisBinding) GetInvert ¶
func (x *AxisBinding) GetInvert() bool
func (*AxisBinding) GetRaw ¶
func (x *AxisBinding) GetRaw() uint32
func (*AxisBinding) MarshalJSON ¶
func (x *AxisBinding) MarshalJSON() ([]byte, error)
MarshalJSON marshals the AxisBinding to JSON.
func (*AxisBinding) MarshalProtoJSON ¶
func (x *AxisBinding) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the AxisBinding message to JSON.
func (*AxisBinding) MarshalProtoText ¶
func (x *AxisBinding) MarshalProtoText() string
func (*AxisBinding) MarshalToSizedBufferVT ¶
func (m *AxisBinding) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*AxisBinding) MarshalToVT ¶
func (m *AxisBinding) MarshalToVT(dAtA []byte) (int, error)
func (*AxisBinding) MarshalVT ¶
func (m *AxisBinding) MarshalVT() (dAtA []byte, err error)
func (*AxisBinding) ProtoMessage ¶
func (*AxisBinding) ProtoMessage()
func (*AxisBinding) Reset ¶
func (x *AxisBinding) Reset()
func (*AxisBinding) SizeVT ¶
func (m *AxisBinding) SizeVT() (n int)
func (*AxisBinding) String ¶
func (x *AxisBinding) String() string
func (*AxisBinding) UnmarshalJSON ¶
func (x *AxisBinding) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the AxisBinding from JSON.
func (*AxisBinding) UnmarshalProtoJSON ¶
func (x *AxisBinding) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the AxisBinding message from JSON.
func (*AxisBinding) UnmarshalVT ¶
func (m *AxisBinding) UnmarshalVT(dAtA []byte) error
type AxisThreshold ¶
type AxisThreshold struct {
// Raw and Gamepad pick the axis read, as in AxisBinding: exactly one is
// set.
Raw *uint32 `protobuf:"varint,1,opt,name=raw,proto3,oneof" json:"raw,omitempty"`
Gamepad *GamepadAxis `protobuf:"varint,2,opt,name=gamepad,proto3,oneof" json:"gamepad,omitempty"`
// Direction is the side of the threshold that holds the button.
Direction ThresholdDirection `protobuf:"varint,3,opt,name=direction,proto3" json:"direction,omitempty"`
// Threshold is the axis value, -1 to 1, at which the button goes down.
Threshold float32 `protobuf:"fixed32,4,opt,name=threshold,proto3" json:"threshold,omitempty"`
// Hysteresis is how far, 0 to 2, the axis must go back past the threshold
// before the button goes up.
Hysteresis *float32 `protobuf:"fixed32,5,opt,name=hysteresis,proto3,oneof" json:"hysteresis,omitempty"`
// contains filtered or unexported fields
}
AxisThreshold reads an axis as a button, as a radio transmitter's two- and three-position switches report themselves as axes. The button goes down when the axis reaches the threshold from the released side, and up only once the axis has gone back past the threshold by the hysteresis, so noise around the threshold never toggles it.
func (*AxisThreshold) CloneMessageVT ¶
func (m *AxisThreshold) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*AxisThreshold) CloneVT ¶
func (m *AxisThreshold) CloneVT() *AxisThreshold
func (*AxisThreshold) EqualMessageVT ¶
func (this *AxisThreshold) EqualMessageVT(thatMsg any) bool
func (*AxisThreshold) EqualVT ¶
func (this *AxisThreshold) EqualVT(that *AxisThreshold) bool
func (*AxisThreshold) GetDirection ¶
func (x *AxisThreshold) GetDirection() ThresholdDirection
func (*AxisThreshold) GetGamepad ¶
func (x *AxisThreshold) GetGamepad() GamepadAxis
func (*AxisThreshold) GetHysteresis ¶
func (x *AxisThreshold) GetHysteresis() float32
func (*AxisThreshold) GetRaw ¶
func (x *AxisThreshold) GetRaw() uint32
func (*AxisThreshold) GetThreshold ¶
func (x *AxisThreshold) GetThreshold() float32
func (*AxisThreshold) MarshalJSON ¶
func (x *AxisThreshold) MarshalJSON() ([]byte, error)
MarshalJSON marshals the AxisThreshold to JSON.
func (*AxisThreshold) MarshalProtoJSON ¶
func (x *AxisThreshold) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the AxisThreshold message to JSON.
func (*AxisThreshold) MarshalProtoText ¶
func (x *AxisThreshold) MarshalProtoText() string
func (*AxisThreshold) MarshalToSizedBufferVT ¶
func (m *AxisThreshold) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*AxisThreshold) MarshalToVT ¶
func (m *AxisThreshold) MarshalToVT(dAtA []byte) (int, error)
func (*AxisThreshold) MarshalVT ¶
func (m *AxisThreshold) MarshalVT() (dAtA []byte, err error)
func (*AxisThreshold) ProtoMessage ¶
func (*AxisThreshold) ProtoMessage()
func (*AxisThreshold) Reset ¶
func (x *AxisThreshold) Reset()
func (*AxisThreshold) SizeVT ¶
func (m *AxisThreshold) SizeVT() (n int)
func (*AxisThreshold) String ¶
func (x *AxisThreshold) String() string
func (*AxisThreshold) UnmarshalJSON ¶
func (x *AxisThreshold) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the AxisThreshold from JSON.
func (*AxisThreshold) UnmarshalProtoJSON ¶
func (x *AxisThreshold) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the AxisThreshold message from JSON.
func (*AxisThreshold) UnmarshalVT ¶
func (m *AxisThreshold) UnmarshalVT(dAtA []byte) error
type ButtonBinding ¶
type ButtonBinding struct {
// Bits are the command's button bits (buttonstate1) the input holds.
Bits uint64 `protobuf:"varint,1,opt,name=bits,proto3" json:"bits,omitempty"`
// Raw is the index of a raw button in ControllerState's buttons.
Raw *uint32 `protobuf:"varint,2,opt,name=raw,proto3,oneof" json:"raw,omitempty"`
// Gamepad is a button of the gamepad layer.
Gamepad *GamepadButton `protobuf:"varint,3,opt,name=gamepad,proto3,oneof" json:"gamepad,omitempty"`
// Threshold is an axis read as a button.
Threshold *AxisThreshold `protobuf:"bytes,4,opt,name=threshold,proto3,oneof" json:"threshold,omitempty"`
// Hat is a hat read as a button.
Hat *HatPosition `protobuf:"bytes,5,opt,name=hat,proto3,oneof" json:"hat,omitempty"`
// contains filtered or unexported fields
}
ButtonBinding holds command button bits while one device input is held: a raw button, a gamepad button, an axis past a threshold or a hat direction. Exactly one source is set; an entry with none or several is ignored.
func (*ButtonBinding) CloneMessageVT ¶
func (m *ButtonBinding) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ButtonBinding) CloneVT ¶
func (m *ButtonBinding) CloneVT() *ButtonBinding
func (*ButtonBinding) EqualMessageVT ¶
func (this *ButtonBinding) EqualMessageVT(thatMsg any) bool
func (*ButtonBinding) EqualVT ¶
func (this *ButtonBinding) EqualVT(that *ButtonBinding) bool
func (*ButtonBinding) GetBits ¶
func (x *ButtonBinding) GetBits() uint64
func (*ButtonBinding) GetGamepad ¶
func (x *ButtonBinding) GetGamepad() GamepadButton
func (*ButtonBinding) GetHat ¶
func (x *ButtonBinding) GetHat() *HatPosition
func (*ButtonBinding) GetRaw ¶
func (x *ButtonBinding) GetRaw() uint32
func (*ButtonBinding) GetThreshold ¶
func (x *ButtonBinding) GetThreshold() *AxisThreshold
func (*ButtonBinding) MarshalJSON ¶
func (x *ButtonBinding) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ButtonBinding to JSON.
func (*ButtonBinding) MarshalProtoJSON ¶
func (x *ButtonBinding) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ButtonBinding message to JSON.
func (*ButtonBinding) MarshalProtoText ¶
func (x *ButtonBinding) MarshalProtoText() string
func (*ButtonBinding) MarshalToSizedBufferVT ¶
func (m *ButtonBinding) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ButtonBinding) MarshalToVT ¶
func (m *ButtonBinding) MarshalToVT(dAtA []byte) (int, error)
func (*ButtonBinding) MarshalVT ¶
func (m *ButtonBinding) MarshalVT() (dAtA []byte, err error)
func (*ButtonBinding) ProtoMessage ¶
func (*ButtonBinding) ProtoMessage()
func (*ButtonBinding) Reset ¶
func (x *ButtonBinding) Reset()
func (*ButtonBinding) SizeVT ¶
func (m *ButtonBinding) SizeVT() (n int)
func (*ButtonBinding) String ¶
func (x *ButtonBinding) String() string
func (*ButtonBinding) UnmarshalJSON ¶
func (x *ButtonBinding) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ButtonBinding from JSON.
func (*ButtonBinding) UnmarshalProtoJSON ¶
func (x *ButtonBinding) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ButtonBinding message from JSON.
func (*ButtonBinding) UnmarshalVT ¶
func (m *ButtonBinding) UnmarshalVT(dAtA []byte) error
type CommandAxis ¶
type CommandAxis int32
CommandAxis names one analog field of the player's user command (CBaseUserCmdPB) that a command binding can drive.
const ( // COMMAND_AXIS_UNKNOWN is no field; a binding entry naming it is ignored. CommandAxis_COMMAND_AXIS_UNKNOWN CommandAxis = 0 // COMMAND_AXIS_FORWARD is forwardmove. CommandAxis_COMMAND_AXIS_FORWARD CommandAxis = 1 // COMMAND_AXIS_LEFT is leftmove. CommandAxis_COMMAND_AXIS_LEFT CommandAxis = 2 // COMMAND_AXIS_UP is upmove. CommandAxis_COMMAND_AXIS_UP CommandAxis = 3 // COMMAND_AXIS_ROLL is the roll of viewangles, its z component. CommandAxis_COMMAND_AXIS_ROLL CommandAxis = 4 )
func (CommandAxis) Enum ¶
func (x CommandAxis) Enum() *CommandAxis
func (CommandAxis) MarshalJSON ¶
func (x CommandAxis) MarshalJSON() ([]byte, error)
MarshalJSON marshals the CommandAxis to JSON.
func (CommandAxis) MarshalProtoJSON ¶
func (x CommandAxis) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the CommandAxis to JSON.
func (CommandAxis) MarshalProtoText ¶
func (x CommandAxis) MarshalProtoText() string
func (CommandAxis) MarshalText ¶
func (x CommandAxis) MarshalText() ([]byte, error)
MarshalText marshals the CommandAxis to text.
func (CommandAxis) String ¶
func (x CommandAxis) String() string
func (*CommandAxis) UnmarshalJSON ¶
func (x *CommandAxis) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the CommandAxis from JSON.
func (*CommandAxis) UnmarshalProtoJSON ¶
func (x *CommandAxis) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the CommandAxis from JSON.
func (*CommandAxis) UnmarshalText ¶
func (x *CommandAxis) UnmarshalText(b []byte) error
UnmarshalText unmarshals the CommandAxis from text.
type CommandBinding ¶
type CommandBinding struct {
// Guid picks the device by its ControllerInfo guid. Empty picks the
// attached device with the lowest id that has every input the binding
// reads.
Guid *string `protobuf:"bytes,1,opt,name=guid,proto3,oneof" json:"guid,omitempty"`
// Axes drives each command axis at most once; a later entry for the same
// axis is ignored.
Axes []*AxisBinding `protobuf:"bytes,2,rep,name=axes,proto3" json:"axes,omitempty"`
// Buttons holds command button bits.
Buttons []*ButtonBinding `protobuf:"bytes,3,rep,name=buttons,proto3" json:"buttons,omitempty"`
// Marker holds button bits on every command the binding drives, so the
// server can tell such a command from one without the device's input.
Marker *uint64 `protobuf:"varint,4,opt,name=marker,proto3,oneof" json:"marker,omitempty"`
// contains filtered or unexported fields
}
CommandBinding maps one device's inputs to the fields of the player's user commands. The player's client applies it to each state it reads and hands the result to its host application, which may carry it in the commands the game sends, so the server receives the device's input with each command instead of a round trip later. Modlock itself writes nothing into the game.
func (*CommandBinding) CloneMessageVT ¶
func (m *CommandBinding) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*CommandBinding) CloneVT ¶
func (m *CommandBinding) CloneVT() *CommandBinding
func (*CommandBinding) EqualMessageVT ¶
func (this *CommandBinding) EqualMessageVT(thatMsg any) bool
func (*CommandBinding) EqualVT ¶
func (this *CommandBinding) EqualVT(that *CommandBinding) bool
func (*CommandBinding) GetAxes ¶
func (x *CommandBinding) GetAxes() []*AxisBinding
func (*CommandBinding) GetButtons ¶
func (x *CommandBinding) GetButtons() []*ButtonBinding
func (*CommandBinding) GetGuid ¶
func (x *CommandBinding) GetGuid() string
func (*CommandBinding) GetMarker ¶
func (x *CommandBinding) GetMarker() uint64
func (*CommandBinding) MarshalJSON ¶
func (x *CommandBinding) MarshalJSON() ([]byte, error)
MarshalJSON marshals the CommandBinding to JSON.
func (*CommandBinding) MarshalProtoJSON ¶
func (x *CommandBinding) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the CommandBinding message to JSON.
func (*CommandBinding) MarshalProtoText ¶
func (x *CommandBinding) MarshalProtoText() string
func (*CommandBinding) MarshalToSizedBufferVT ¶
func (m *CommandBinding) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*CommandBinding) MarshalToVT ¶
func (m *CommandBinding) MarshalToVT(dAtA []byte) (int, error)
func (*CommandBinding) MarshalVT ¶
func (m *CommandBinding) MarshalVT() (dAtA []byte, err error)
func (*CommandBinding) ProtoMessage ¶
func (*CommandBinding) ProtoMessage()
func (*CommandBinding) Reset ¶
func (x *CommandBinding) Reset()
func (*CommandBinding) SizeVT ¶
func (m *CommandBinding) SizeVT() (n int)
func (*CommandBinding) String ¶
func (x *CommandBinding) String() string
func (*CommandBinding) UnmarshalJSON ¶
func (x *CommandBinding) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the CommandBinding from JSON.
func (*CommandBinding) UnmarshalProtoJSON ¶
func (x *CommandBinding) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the CommandBinding message from JSON.
func (*CommandBinding) UnmarshalVT ¶
func (m *CommandBinding) UnmarshalVT(dAtA []byte) error
type Controller ¶
type Controller struct {
// Info describes the device.
Info *ControllerInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
// State is its inputs now, with the presses and releases since the mod's
// previous frame.
State *ControllerState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
// contains filtered or unexported fields
}
Controller is one device as a mod reads it.
func (*Controller) CloneMessageVT ¶
func (m *Controller) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Controller) CloneVT ¶
func (m *Controller) CloneVT() *Controller
func (*Controller) EqualMessageVT ¶
func (this *Controller) EqualMessageVT(thatMsg any) bool
func (*Controller) EqualVT ¶
func (this *Controller) EqualVT(that *Controller) bool
func (*Controller) GetInfo ¶
func (x *Controller) GetInfo() *ControllerInfo
func (*Controller) GetState ¶
func (x *Controller) GetState() *ControllerState
func (*Controller) MarshalJSON ¶
func (x *Controller) MarshalJSON() ([]byte, error)
MarshalJSON marshals the Controller to JSON.
func (*Controller) MarshalProtoJSON ¶
func (x *Controller) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Controller message to JSON.
func (*Controller) MarshalProtoText ¶
func (x *Controller) MarshalProtoText() string
func (*Controller) MarshalToSizedBufferVT ¶
func (m *Controller) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Controller) MarshalToVT ¶
func (m *Controller) MarshalToVT(dAtA []byte) (int, error)
func (*Controller) MarshalVT ¶
func (m *Controller) MarshalVT() (dAtA []byte, err error)
func (*Controller) ProtoMessage ¶
func (*Controller) ProtoMessage()
func (*Controller) Reset ¶
func (x *Controller) Reset()
func (*Controller) SizeVT ¶
func (m *Controller) SizeVT() (n int)
func (*Controller) String ¶
func (x *Controller) String() string
func (*Controller) UnmarshalJSON ¶
func (x *Controller) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the Controller from JSON.
func (*Controller) UnmarshalProtoJSON ¶
func (x *Controller) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Controller message from JSON.
func (*Controller) UnmarshalVT ¶
func (m *Controller) UnmarshalVT(dAtA []byte) error
type ControllerFrame ¶
type ControllerFrame struct {
// Epoch is the want epoch this frame answers, from the ControllerWant the
// client last received. The host keeps only frames of the current epoch.
Epoch uint32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
// Full is true when Added lists every device and Changed every device's
// state, replacing what the host held. A client sends a full frame first
// for each epoch.
Full bool `protobuf:"varint,2,opt,name=full,proto3" json:"full,omitempty"`
// Focused is true when the player's game window has focus. An unfocused
// client reports every device with nothing held and every axis at rest.
Focused bool `protobuf:"varint,3,opt,name=focused,proto3" json:"focused,omitempty"`
// Added describes the devices attached since the previous frame.
Added []*ControllerInfo `protobuf:"bytes,4,rep,name=added,proto3" json:"added,omitempty"`
// Changed holds the whole state of each device whose state changed.
Changed []*ControllerState `protobuf:"bytes,5,rep,name=changed,proto3" json:"changed,omitempty"`
// Removed lists the ids of the devices detached since the previous frame.
Removed []uint32 `protobuf:"varint,6,rep,packed,name=removed,proto3" json:"removed,omitempty"`
// Reader is the state of the client's reader. A client answers each want
// epoch at once, so while its reader is opening or unavailable it sends a
// full frame with that state and no devices, and it sends the devices'
// full set once the reader reads.
Reader ControllerReader `protobuf:"varint,7,opt,name=reader,proto3" json:"reader,omitempty"`
// Reason says why the reader is unavailable, such as SDL3's load error.
Reason string `protobuf:"bytes,8,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
ControllerFrame is what a client sends on its stream: the whole set of devices first, then only what changed, and a frame with no change as a heartbeat at least every 50 milliseconds.
func (*ControllerFrame) CloneMessageVT ¶
func (m *ControllerFrame) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ControllerFrame) CloneVT ¶
func (m *ControllerFrame) CloneVT() *ControllerFrame
func (*ControllerFrame) EqualMessageVT ¶
func (this *ControllerFrame) EqualMessageVT(thatMsg any) bool
func (*ControllerFrame) EqualVT ¶
func (this *ControllerFrame) EqualVT(that *ControllerFrame) bool
func (*ControllerFrame) GetAdded ¶
func (x *ControllerFrame) GetAdded() []*ControllerInfo
func (*ControllerFrame) GetChanged ¶
func (x *ControllerFrame) GetChanged() []*ControllerState
func (*ControllerFrame) GetEpoch ¶
func (x *ControllerFrame) GetEpoch() uint32
func (*ControllerFrame) GetFocused ¶
func (x *ControllerFrame) GetFocused() bool
func (*ControllerFrame) GetFull ¶
func (x *ControllerFrame) GetFull() bool
func (*ControllerFrame) GetReader ¶
func (x *ControllerFrame) GetReader() ControllerReader
func (*ControllerFrame) GetReason ¶
func (x *ControllerFrame) GetReason() string
func (*ControllerFrame) GetRemoved ¶
func (x *ControllerFrame) GetRemoved() []uint32
func (*ControllerFrame) MarshalJSON ¶
func (x *ControllerFrame) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ControllerFrame to JSON.
func (*ControllerFrame) MarshalProtoJSON ¶
func (x *ControllerFrame) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ControllerFrame message to JSON.
func (*ControllerFrame) MarshalProtoText ¶
func (x *ControllerFrame) MarshalProtoText() string
func (*ControllerFrame) MarshalToSizedBufferVT ¶
func (m *ControllerFrame) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ControllerFrame) MarshalToVT ¶
func (m *ControllerFrame) MarshalToVT(dAtA []byte) (int, error)
func (*ControllerFrame) MarshalVT ¶
func (m *ControllerFrame) MarshalVT() (dAtA []byte, err error)
func (*ControllerFrame) ProtoMessage ¶
func (*ControllerFrame) ProtoMessage()
func (*ControllerFrame) Reset ¶
func (x *ControllerFrame) Reset()
func (*ControllerFrame) SizeVT ¶
func (m *ControllerFrame) SizeVT() (n int)
func (*ControllerFrame) String ¶
func (x *ControllerFrame) String() string
func (*ControllerFrame) UnmarshalJSON ¶
func (x *ControllerFrame) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ControllerFrame from JSON.
func (*ControllerFrame) UnmarshalProtoJSON ¶
func (x *ControllerFrame) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ControllerFrame message from JSON.
func (*ControllerFrame) UnmarshalVT ¶
func (m *ControllerFrame) UnmarshalVT(dAtA []byte) error
type ControllerFrames ¶
type ControllerFrames struct {
// Player is the player's slot.
Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
// Frames holds the frames, oldest first.
Frames []*ControllerFrame `protobuf:"bytes,2,rep,name=frames,proto3" json:"frames,omitempty"`
// Ended is true when the player's stream ended, after its last frame: the
// client disconnected or the link dropped.
Ended bool `protobuf:"varint,3,opt,name=ended,proto3" json:"ended,omitempty"`
// contains filtered or unexported fields
}
ControllerFrames carries one player's controller frames to the host, in the order their client sent them. The game server sends a player's frames only from the stream it bound to that player's own client.
func (*ControllerFrames) CloneMessageVT ¶
func (m *ControllerFrames) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ControllerFrames) CloneVT ¶
func (m *ControllerFrames) CloneVT() *ControllerFrames
func (*ControllerFrames) EqualMessageVT ¶
func (this *ControllerFrames) EqualMessageVT(thatMsg any) bool
func (*ControllerFrames) EqualVT ¶
func (this *ControllerFrames) EqualVT(that *ControllerFrames) bool
func (*ControllerFrames) GetEnded ¶
func (x *ControllerFrames) GetEnded() bool
func (*ControllerFrames) GetFrames ¶
func (x *ControllerFrames) GetFrames() []*ControllerFrame
func (*ControllerFrames) GetPlayer ¶
func (x *ControllerFrames) GetPlayer() int32
func (*ControllerFrames) MarshalJSON ¶
func (x *ControllerFrames) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ControllerFrames to JSON.
func (*ControllerFrames) MarshalProtoJSON ¶
func (x *ControllerFrames) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ControllerFrames message to JSON.
func (*ControllerFrames) MarshalProtoText ¶
func (x *ControllerFrames) MarshalProtoText() string
func (*ControllerFrames) MarshalToSizedBufferVT ¶
func (m *ControllerFrames) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ControllerFrames) MarshalToVT ¶
func (m *ControllerFrames) MarshalToVT(dAtA []byte) (int, error)
func (*ControllerFrames) MarshalVT ¶
func (m *ControllerFrames) MarshalVT() (dAtA []byte, err error)
func (*ControllerFrames) ProtoMessage ¶
func (*ControllerFrames) ProtoMessage()
func (*ControllerFrames) Reset ¶
func (x *ControllerFrames) Reset()
func (*ControllerFrames) SizeVT ¶
func (m *ControllerFrames) SizeVT() (n int)
func (*ControllerFrames) String ¶
func (x *ControllerFrames) String() string
func (*ControllerFrames) UnmarshalJSON ¶
func (x *ControllerFrames) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ControllerFrames from JSON.
func (*ControllerFrames) UnmarshalProtoJSON ¶
func (x *ControllerFrames) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ControllerFrames message from JSON.
func (*ControllerFrames) UnmarshalVT ¶
func (m *ControllerFrames) UnmarshalVT(dAtA []byte) error
type ControllerInfo ¶
type ControllerInfo struct {
// Id identifies the device within its stream for as long as it stays
// attached. A device plugged in again gets a new id.
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Name is the device's name, such as "Xbox Series X Controller".
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Guid is SDL's joystick GUID in hexadecimal, which identifies the model
// and the way it is attached.
Guid string `protobuf:"bytes,3,opt,name=guid,proto3" json:"guid,omitempty"`
// Vendor and Product are the USB vendor and product IDs, or zero when the
// device does not report them.
Vendor uint32 `protobuf:"varint,4,opt,name=vendor,proto3" json:"vendor,omitempty"`
Product uint32 `protobuf:"varint,5,opt,name=product,proto3" json:"product,omitempty"`
// Axes, Buttons and Hats count the device's raw inputs, which State's
// lists follow.
Axes uint32 `protobuf:"varint,6,opt,name=axes,proto3" json:"axes,omitempty"`
Buttons uint32 `protobuf:"varint,7,opt,name=buttons,proto3" json:"buttons,omitempty"`
Hats uint32 `protobuf:"varint,8,opt,name=hats,proto3" json:"hats,omitempty"`
// Gamepad is true when SDL knows the device's gamepad layout, so State
// carries the gamepad layer.
Gamepad bool `protobuf:"varint,9,opt,name=gamepad,proto3" json:"gamepad,omitempty"`
// contains filtered or unexported fields
}
ControllerInfo describes one device a client reads.
func (*ControllerInfo) CloneMessageVT ¶
func (m *ControllerInfo) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ControllerInfo) CloneVT ¶
func (m *ControllerInfo) CloneVT() *ControllerInfo
func (*ControllerInfo) EqualMessageVT ¶
func (this *ControllerInfo) EqualMessageVT(thatMsg any) bool
func (*ControllerInfo) EqualVT ¶
func (this *ControllerInfo) EqualVT(that *ControllerInfo) bool
func (*ControllerInfo) GetAxes ¶
func (x *ControllerInfo) GetAxes() uint32
func (*ControllerInfo) GetButtons ¶
func (x *ControllerInfo) GetButtons() uint32
func (*ControllerInfo) GetGamepad ¶
func (x *ControllerInfo) GetGamepad() bool
func (*ControllerInfo) GetGuid ¶
func (x *ControllerInfo) GetGuid() string
func (*ControllerInfo) GetHats ¶
func (x *ControllerInfo) GetHats() uint32
func (*ControllerInfo) GetId ¶
func (x *ControllerInfo) GetId() uint32
func (*ControllerInfo) GetName ¶
func (x *ControllerInfo) GetName() string
func (*ControllerInfo) GetProduct ¶
func (x *ControllerInfo) GetProduct() uint32
func (*ControllerInfo) GetVendor ¶
func (x *ControllerInfo) GetVendor() uint32
func (*ControllerInfo) MarshalJSON ¶
func (x *ControllerInfo) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ControllerInfo to JSON.
func (*ControllerInfo) MarshalProtoJSON ¶
func (x *ControllerInfo) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ControllerInfo message to JSON.
func (*ControllerInfo) MarshalProtoText ¶
func (x *ControllerInfo) MarshalProtoText() string
func (*ControllerInfo) MarshalToSizedBufferVT ¶
func (m *ControllerInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ControllerInfo) MarshalToVT ¶
func (m *ControllerInfo) MarshalToVT(dAtA []byte) (int, error)
func (*ControllerInfo) MarshalVT ¶
func (m *ControllerInfo) MarshalVT() (dAtA []byte, err error)
func (*ControllerInfo) ProtoMessage ¶
func (*ControllerInfo) ProtoMessage()
func (*ControllerInfo) Reset ¶
func (x *ControllerInfo) Reset()
func (*ControllerInfo) SizeVT ¶
func (m *ControllerInfo) SizeVT() (n int)
func (*ControllerInfo) String ¶
func (x *ControllerInfo) String() string
func (*ControllerInfo) UnmarshalJSON ¶
func (x *ControllerInfo) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ControllerInfo from JSON.
func (*ControllerInfo) UnmarshalProtoJSON ¶
func (x *ControllerInfo) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ControllerInfo message from JSON.
func (*ControllerInfo) UnmarshalVT ¶
func (m *ControllerInfo) UnmarshalVT(dAtA []byte) error
type ControllerReader ¶
type ControllerReader int32
ControllerReader is the state of a client's reader, which a frame reports.
const ( // CONTROLLER_READER_READING means the reader has the devices open and the // frame lists them. Every frame after the first of a reading client // carries it, so it is the zero value. ControllerReader_CONTROLLER_READER_READING ControllerReader = 0 // CONTROLLER_READER_OPENING means the reader is loading or starting SDL. ControllerReader_CONTROLLER_READER_OPENING ControllerReader = 1 // CONTROLLER_READER_UNAVAILABLE means the reader failed to load or start // SDL, for the frame's reason. ControllerReader_CONTROLLER_READER_UNAVAILABLE ControllerReader = 2 )
func (ControllerReader) Enum ¶
func (x ControllerReader) Enum() *ControllerReader
func (ControllerReader) MarshalJSON ¶
func (x ControllerReader) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ControllerReader to JSON.
func (ControllerReader) MarshalProtoJSON ¶
func (x ControllerReader) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ControllerReader to JSON.
func (ControllerReader) MarshalProtoText ¶
func (x ControllerReader) MarshalProtoText() string
func (ControllerReader) MarshalText ¶
func (x ControllerReader) MarshalText() ([]byte, error)
MarshalText marshals the ControllerReader to text.
func (ControllerReader) String ¶
func (x ControllerReader) String() string
func (*ControllerReader) UnmarshalJSON ¶
func (x *ControllerReader) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ControllerReader from JSON.
func (*ControllerReader) UnmarshalProtoJSON ¶
func (x *ControllerReader) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ControllerReader from JSON.
func (*ControllerReader) UnmarshalText ¶
func (x *ControllerReader) UnmarshalText(b []byte) error
UnmarshalText unmarshals the ControllerReader from text.
type ControllerState ¶
type ControllerState struct {
// Id is the device's id in ControllerInfo.
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// Axes holds each raw axis from -1 to 1, in the device's order. A radio
// transmitter's channels are its axes.
Axes []float32 `protobuf:"fixed32,2,rep,packed,name=axes,proto3" json:"axes,omitempty"`
// Buttons holds whether each raw button is held, in the device's order.
Buttons []bool `protobuf:"varint,3,rep,packed,name=buttons,proto3" json:"buttons,omitempty"`
// Hats holds each hat's position as SDL's mask: 1 up, 2 right, 4 down and
// 8 left, combined on a diagonal, and 0 centered.
Hats []uint32 `protobuf:"varint,4,rep,packed,name=hats,proto3" json:"hats,omitempty"`
// Pressed and Released list the raw buttons, by index, pressed and
// released since the previous state, once for each press.
Pressed []uint32 `protobuf:"varint,5,rep,packed,name=pressed,proto3" json:"pressed,omitempty"`
Released []uint32 `protobuf:"varint,6,rep,packed,name=released,proto3" json:"released,omitempty"`
// Gamepad is the gamepad layer, when the device has one.
Gamepad *Gamepad `protobuf:"bytes,7,opt,name=gamepad,proto3" json:"gamepad,omitempty"`
// contains filtered or unexported fields
}
ControllerState is one device's inputs, the raw joystick layer always and the gamepad layer when SDL knows the device.
func (*ControllerState) CloneMessageVT ¶
func (m *ControllerState) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ControllerState) CloneVT ¶
func (m *ControllerState) CloneVT() *ControllerState
func (*ControllerState) EqualMessageVT ¶
func (this *ControllerState) EqualMessageVT(thatMsg any) bool
func (*ControllerState) EqualVT ¶
func (this *ControllerState) EqualVT(that *ControllerState) bool
func (*ControllerState) GetAxes ¶
func (x *ControllerState) GetAxes() []float32
func (*ControllerState) GetButtons ¶
func (x *ControllerState) GetButtons() []bool
func (*ControllerState) GetGamepad ¶
func (x *ControllerState) GetGamepad() *Gamepad
func (*ControllerState) GetHats ¶
func (x *ControllerState) GetHats() []uint32
func (*ControllerState) GetId ¶
func (x *ControllerState) GetId() uint32
func (*ControllerState) GetPressed ¶
func (x *ControllerState) GetPressed() []uint32
func (*ControllerState) GetReleased ¶
func (x *ControllerState) GetReleased() []uint32
func (*ControllerState) MarshalJSON ¶
func (x *ControllerState) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ControllerState to JSON.
func (*ControllerState) MarshalProtoJSON ¶
func (x *ControllerState) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ControllerState message to JSON.
func (*ControllerState) MarshalProtoText ¶
func (x *ControllerState) MarshalProtoText() string
func (*ControllerState) MarshalToSizedBufferVT ¶
func (m *ControllerState) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ControllerState) MarshalToVT ¶
func (m *ControllerState) MarshalToVT(dAtA []byte) (int, error)
func (*ControllerState) MarshalVT ¶
func (m *ControllerState) MarshalVT() (dAtA []byte, err error)
func (*ControllerState) ProtoMessage ¶
func (*ControllerState) ProtoMessage()
func (*ControllerState) Reset ¶
func (x *ControllerState) Reset()
func (*ControllerState) SizeVT ¶
func (m *ControllerState) SizeVT() (n int)
func (*ControllerState) String ¶
func (x *ControllerState) String() string
func (*ControllerState) UnmarshalJSON ¶
func (x *ControllerState) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ControllerState from JSON.
func (*ControllerState) UnmarshalProtoJSON ¶
func (x *ControllerState) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ControllerState message from JSON.
func (*ControllerState) UnmarshalVT ¶
func (m *ControllerState) UnmarshalVT(dAtA []byte) error
type ControllerStream ¶
type ControllerStream int32
ControllerStream is the state of the stream that brings one player's controllers to the host, as a mod reads it.
const ( // CONTROLLER_STREAM_UNKNOWN is never sent. ControllerStream_CONTROLLER_STREAM_UNKNOWN ControllerStream = 0 // CONTROLLER_STREAM_NONE means no client streams the player's controllers // yet: none is linked, the link dropped, or the client has not answered // the watch. A mod sees no controllers, and the player needs the client // running. ControllerStream_CONTROLLER_STREAM_NONE ControllerStream = 1 // CONTROLLER_STREAM_LIVE means frames arrive and the game has focus. ControllerStream_CONTROLLER_STREAM_LIVE ControllerStream = 2 // CONTROLLER_STREAM_UNFOCUSED means frames arrive while the player's game // window does not have focus. The controllers are listed with nothing held // and every axis at rest. ControllerStream_CONTROLLER_STREAM_UNFOCUSED ControllerStream = 3 // CONTROLLER_STREAM_STALE means the stream is linked but no frame arrived // within its deadline. The controllers keep their last state, so a short // gap does not cut a held throttle; the mod decides what a long one means. ControllerStream_CONTROLLER_STREAM_STALE ControllerStream = 4 // CONTROLLER_STREAM_OPENING means the client answered and is starting its // reader. Starting can wait on a system prompt that controls access to // input devices, so an opening that lasts is the player's cue to allow it. ControllerStream_CONTROLLER_STREAM_OPENING ControllerStream = 5 // CONTROLLER_STREAM_UNAVAILABLE means the client answered but cannot read // controllers on this PC, for the reason PlayerControllers gives, such as // SDL3 failing to load. The client tries again on the next watch. ControllerStream_CONTROLLER_STREAM_UNAVAILABLE ControllerStream = 6 )
func (ControllerStream) Enum ¶
func (x ControllerStream) Enum() *ControllerStream
func (ControllerStream) MarshalJSON ¶
func (x ControllerStream) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ControllerStream to JSON.
func (ControllerStream) MarshalProtoJSON ¶
func (x ControllerStream) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ControllerStream to JSON.
func (ControllerStream) MarshalProtoText ¶
func (x ControllerStream) MarshalProtoText() string
func (ControllerStream) MarshalText ¶
func (x ControllerStream) MarshalText() ([]byte, error)
MarshalText marshals the ControllerStream to text.
func (ControllerStream) String ¶
func (x ControllerStream) String() string
func (*ControllerStream) UnmarshalJSON ¶
func (x *ControllerStream) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ControllerStream from JSON.
func (*ControllerStream) UnmarshalProtoJSON ¶
func (x *ControllerStream) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ControllerStream from JSON.
func (*ControllerStream) UnmarshalText ¶
func (x *ControllerStream) UnmarshalText(b []byte) error
UnmarshalText unmarshals the ControllerStream from text.
type ControllerWant ¶
type ControllerWant struct {
// Player is the player's slot.
Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
// Epoch counts the watches of this player's slot: it grows each time a mod
// starts watching after none did, and never repeats while the host runs.
// The client answers each new epoch with a full frame, so a watch that ends
// and starts again before the client hears either still gets a full frame.
Epoch uint32 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"`
// Binding is the command binding the watching mods set, which the client
// applies to its devices for the host application, or empty when none is
// set. A change of binding keeps the epoch.
Binding *CommandBinding `protobuf:"bytes,3,opt,name=binding,proto3" json:"binding,omitempty"`
// contains filtered or unexported fields
}
ControllerWant asks a player's client to stream their controllers.
func (*ControllerWant) CloneMessageVT ¶
func (m *ControllerWant) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ControllerWant) CloneVT ¶
func (m *ControllerWant) CloneVT() *ControllerWant
func (*ControllerWant) EqualMessageVT ¶
func (this *ControllerWant) EqualMessageVT(thatMsg any) bool
func (*ControllerWant) EqualVT ¶
func (this *ControllerWant) EqualVT(that *ControllerWant) bool
func (*ControllerWant) GetBinding ¶
func (x *ControllerWant) GetBinding() *CommandBinding
func (*ControllerWant) GetEpoch ¶
func (x *ControllerWant) GetEpoch() uint32
func (*ControllerWant) GetPlayer ¶
func (x *ControllerWant) GetPlayer() int32
func (*ControllerWant) MarshalJSON ¶
func (x *ControllerWant) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ControllerWant to JSON.
func (*ControllerWant) MarshalProtoJSON ¶
func (x *ControllerWant) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ControllerWant message to JSON.
func (*ControllerWant) MarshalProtoText ¶
func (x *ControllerWant) MarshalProtoText() string
func (*ControllerWant) MarshalToSizedBufferVT ¶
func (m *ControllerWant) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ControllerWant) MarshalToVT ¶
func (m *ControllerWant) MarshalToVT(dAtA []byte) (int, error)
func (*ControllerWant) MarshalVT ¶
func (m *ControllerWant) MarshalVT() (dAtA []byte, err error)
func (*ControllerWant) ProtoMessage ¶
func (*ControllerWant) ProtoMessage()
func (*ControllerWant) Reset ¶
func (x *ControllerWant) Reset()
func (*ControllerWant) SizeVT ¶
func (m *ControllerWant) SizeVT() (n int)
func (*ControllerWant) String ¶
func (x *ControllerWant) String() string
func (*ControllerWant) UnmarshalJSON ¶
func (x *ControllerWant) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ControllerWant from JSON.
func (*ControllerWant) UnmarshalProtoJSON ¶
func (x *ControllerWant) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ControllerWant message from JSON.
func (*ControllerWant) UnmarshalVT ¶
func (m *ControllerWant) UnmarshalVT(dAtA []byte) error
type ControllerWants ¶
type ControllerWants struct {
// Wants holds one entry per watched player.
Wants []*ControllerWant `protobuf:"bytes,1,rep,name=wants,proto3" json:"wants,omitempty"`
// contains filtered or unexported fields
}
ControllerWants is every player whose controllers some mod watches. A player missing from it is not wanted, and their client closes its devices.
func (*ControllerWants) CloneMessageVT ¶
func (m *ControllerWants) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*ControllerWants) CloneVT ¶
func (m *ControllerWants) CloneVT() *ControllerWants
func (*ControllerWants) EqualMessageVT ¶
func (this *ControllerWants) EqualMessageVT(thatMsg any) bool
func (*ControllerWants) EqualVT ¶
func (this *ControllerWants) EqualVT(that *ControllerWants) bool
func (*ControllerWants) GetWants ¶
func (x *ControllerWants) GetWants() []*ControllerWant
func (*ControllerWants) MarshalJSON ¶
func (x *ControllerWants) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ControllerWants to JSON.
func (*ControllerWants) MarshalProtoJSON ¶
func (x *ControllerWants) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ControllerWants message to JSON.
func (*ControllerWants) MarshalProtoText ¶
func (x *ControllerWants) MarshalProtoText() string
func (*ControllerWants) MarshalToSizedBufferVT ¶
func (m *ControllerWants) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ControllerWants) MarshalToVT ¶
func (m *ControllerWants) MarshalToVT(dAtA []byte) (int, error)
func (*ControllerWants) MarshalVT ¶
func (m *ControllerWants) MarshalVT() (dAtA []byte, err error)
func (*ControllerWants) ProtoMessage ¶
func (*ControllerWants) ProtoMessage()
func (*ControllerWants) Reset ¶
func (x *ControllerWants) Reset()
func (*ControllerWants) SizeVT ¶
func (m *ControllerWants) SizeVT() (n int)
func (*ControllerWants) String ¶
func (x *ControllerWants) String() string
func (*ControllerWants) UnmarshalJSON ¶
func (x *ControllerWants) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ControllerWants from JSON.
func (*ControllerWants) UnmarshalProtoJSON ¶
func (x *ControllerWants) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ControllerWants message from JSON.
func (*ControllerWants) UnmarshalVT ¶
func (m *ControllerWants) UnmarshalVT(dAtA []byte) error
type Gamepad ¶
type Gamepad struct {
// LeftX, LeftY, RightX and RightY are the sticks, from -1 to 1, with x
// positive to the right and y positive down, as SDL reports them.
LeftX float32 `protobuf:"fixed32,1,opt,name=left_x,json=leftX,proto3" json:"leftX,omitempty"`
LeftY float32 `protobuf:"fixed32,2,opt,name=left_y,json=leftY,proto3" json:"leftY,omitempty"`
RightX float32 `protobuf:"fixed32,3,opt,name=right_x,json=rightX,proto3" json:"rightX,omitempty"`
RightY float32 `protobuf:"fixed32,4,opt,name=right_y,json=rightY,proto3" json:"rightY,omitempty"`
// LeftTrigger and RightTrigger run from 0 at rest to 1 fully pulled.
LeftTrigger float32 `protobuf:"fixed32,5,opt,name=left_trigger,json=leftTrigger,proto3" json:"leftTrigger,omitempty"`
RightTrigger float32 `protobuf:"fixed32,6,opt,name=right_trigger,json=rightTrigger,proto3" json:"rightTrigger,omitempty"`
// Held lists the buttons held now.
Held []GamepadButton `protobuf:"varint,7,rep,packed,name=held,proto3" json:"held,omitempty"`
// Pressed and Released list the buttons pressed and released since the
// previous state, once for each press, so a tap shorter than a server frame
// is listed in both.
Pressed []GamepadButton `protobuf:"varint,8,rep,packed,name=pressed,proto3" json:"pressed,omitempty"`
Released []GamepadButton `protobuf:"varint,9,rep,packed,name=released,proto3" json:"released,omitempty"`
// contains filtered or unexported fields
}
Gamepad is a device's gamepad layer, with named sticks, triggers and buttons, for a device whose layout SDL knows.
func (*Gamepad) CloneMessageVT ¶
func (m *Gamepad) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*Gamepad) EqualMessageVT ¶
func (*Gamepad) GetHeld ¶
func (x *Gamepad) GetHeld() []GamepadButton
func (*Gamepad) GetLeftTrigger ¶
func (*Gamepad) GetPressed ¶
func (x *Gamepad) GetPressed() []GamepadButton
func (*Gamepad) GetReleased ¶
func (x *Gamepad) GetReleased() []GamepadButton
func (*Gamepad) GetRightTrigger ¶
func (*Gamepad) MarshalJSON ¶
MarshalJSON marshals the Gamepad to JSON.
func (*Gamepad) MarshalProtoJSON ¶
func (x *Gamepad) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the Gamepad message to JSON.
func (*Gamepad) MarshalProtoText ¶
func (*Gamepad) MarshalToSizedBufferVT ¶
func (*Gamepad) ProtoMessage ¶
func (*Gamepad) ProtoMessage()
func (*Gamepad) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Gamepad from JSON.
func (*Gamepad) UnmarshalProtoJSON ¶
func (x *Gamepad) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the Gamepad message from JSON.
func (*Gamepad) UnmarshalVT ¶
type GamepadAxis ¶
type GamepadAxis int32
GamepadAxis names one axis of the gamepad layout, as Gamepad carries it.
const ( // GAMEPAD_AXIS_UNKNOWN is no axis; a binding entry naming it is ignored. GamepadAxis_GAMEPAD_AXIS_UNKNOWN GamepadAxis = 0 // GAMEPAD_AXIS_LEFT_X and the others are Gamepad's fields of that name. GamepadAxis_GAMEPAD_AXIS_LEFT_X GamepadAxis = 1 GamepadAxis_GAMEPAD_AXIS_LEFT_Y GamepadAxis = 2 GamepadAxis_GAMEPAD_AXIS_RIGHT_X GamepadAxis = 3 GamepadAxis_GAMEPAD_AXIS_RIGHT_Y GamepadAxis = 4 GamepadAxis_GAMEPAD_AXIS_LEFT_TRIGGER GamepadAxis = 5 GamepadAxis_GAMEPAD_AXIS_RIGHT_TRIGGER GamepadAxis = 6 )
func (GamepadAxis) Enum ¶
func (x GamepadAxis) Enum() *GamepadAxis
func (GamepadAxis) MarshalJSON ¶
func (x GamepadAxis) MarshalJSON() ([]byte, error)
MarshalJSON marshals the GamepadAxis to JSON.
func (GamepadAxis) MarshalProtoJSON ¶
func (x GamepadAxis) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the GamepadAxis to JSON.
func (GamepadAxis) MarshalProtoText ¶
func (x GamepadAxis) MarshalProtoText() string
func (GamepadAxis) MarshalText ¶
func (x GamepadAxis) MarshalText() ([]byte, error)
MarshalText marshals the GamepadAxis to text.
func (GamepadAxis) String ¶
func (x GamepadAxis) String() string
func (*GamepadAxis) UnmarshalJSON ¶
func (x *GamepadAxis) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the GamepadAxis from JSON.
func (*GamepadAxis) UnmarshalProtoJSON ¶
func (x *GamepadAxis) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the GamepadAxis from JSON.
func (*GamepadAxis) UnmarshalText ¶
func (x *GamepadAxis) UnmarshalText(b []byte) error
UnmarshalText unmarshals the GamepadAxis from text.
type GamepadButton ¶
type GamepadButton int32
GamepadButton names one button of the gamepad layout, by position as SDL names them: South is A on an Xbox controller and Cross on a PlayStation one.
const ( // GAMEPAD_BUTTON_UNKNOWN is a button the layout does not name. GamepadButton_GAMEPAD_BUTTON_UNKNOWN GamepadButton = 0 // GAMEPAD_BUTTON_SOUTH is the bottom face button. GamepadButton_GAMEPAD_BUTTON_SOUTH GamepadButton = 1 // GAMEPAD_BUTTON_EAST is the right face button. GamepadButton_GAMEPAD_BUTTON_EAST GamepadButton = 2 // GAMEPAD_BUTTON_WEST is the left face button. GamepadButton_GAMEPAD_BUTTON_WEST GamepadButton = 3 // GAMEPAD_BUTTON_NORTH is the top face button. GamepadButton_GAMEPAD_BUTTON_NORTH GamepadButton = 4 // GAMEPAD_BUTTON_BACK is the View, Select or Share button. GamepadButton_GAMEPAD_BUTTON_BACK GamepadButton = 5 // GAMEPAD_BUTTON_GUIDE is the Xbox, PS or Home button. GamepadButton_GAMEPAD_BUTTON_GUIDE GamepadButton = 6 // GAMEPAD_BUTTON_START is the Menu, Start or Options button. GamepadButton_GAMEPAD_BUTTON_START GamepadButton = 7 // GAMEPAD_BUTTON_LEFT_STICK is the left stick pressed in. GamepadButton_GAMEPAD_BUTTON_LEFT_STICK GamepadButton = 8 // GAMEPAD_BUTTON_RIGHT_STICK is the right stick pressed in. GamepadButton_GAMEPAD_BUTTON_RIGHT_STICK GamepadButton = 9 // GAMEPAD_BUTTON_LEFT_SHOULDER is the left bumper. GamepadButton_GAMEPAD_BUTTON_LEFT_SHOULDER GamepadButton = 10 // GAMEPAD_BUTTON_RIGHT_SHOULDER is the right bumper. GamepadButton_GAMEPAD_BUTTON_RIGHT_SHOULDER GamepadButton = 11 // GAMEPAD_BUTTON_DPAD_UP is the directional pad's up. GamepadButton_GAMEPAD_BUTTON_DPAD_UP GamepadButton = 12 // GAMEPAD_BUTTON_DPAD_DOWN is the directional pad's down. GamepadButton_GAMEPAD_BUTTON_DPAD_DOWN GamepadButton = 13 // GAMEPAD_BUTTON_DPAD_LEFT is the directional pad's left. GamepadButton_GAMEPAD_BUTTON_DPAD_LEFT GamepadButton = 14 // GAMEPAD_BUTTON_DPAD_RIGHT is the directional pad's right. GamepadButton_GAMEPAD_BUTTON_DPAD_RIGHT GamepadButton = 15 // GAMEPAD_BUTTON_MISC is the extra button some pads have, such as the // Xbox Share button or the PlayStation microphone button. GamepadButton_GAMEPAD_BUTTON_MISC GamepadButton = 16 // GAMEPAD_BUTTON_TOUCHPAD is the PlayStation touchpad pressed. GamepadButton_GAMEPAD_BUTTON_TOUCHPAD GamepadButton = 17 )
func (GamepadButton) Enum ¶
func (x GamepadButton) Enum() *GamepadButton
func (GamepadButton) MarshalJSON ¶
func (x GamepadButton) MarshalJSON() ([]byte, error)
MarshalJSON marshals the GamepadButton to JSON.
func (GamepadButton) MarshalProtoJSON ¶
func (x GamepadButton) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the GamepadButton to JSON.
func (GamepadButton) MarshalProtoText ¶
func (x GamepadButton) MarshalProtoText() string
func (GamepadButton) MarshalText ¶
func (x GamepadButton) MarshalText() ([]byte, error)
MarshalText marshals the GamepadButton to text.
func (GamepadButton) String ¶
func (x GamepadButton) String() string
func (*GamepadButton) UnmarshalJSON ¶
func (x *GamepadButton) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the GamepadButton from JSON.
func (*GamepadButton) UnmarshalProtoJSON ¶
func (x *GamepadButton) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the GamepadButton from JSON.
func (*GamepadButton) UnmarshalText ¶
func (x *GamepadButton) UnmarshalText(b []byte) error
UnmarshalText unmarshals the GamepadButton from text.
type HatPosition ¶
type HatPosition struct {
// Hat is the index of the hat in ControllerState's hats.
Hat uint32 `protobuf:"varint,1,opt,name=hat,proto3" json:"hat,omitempty"`
// Mask holds the directions, as ControllerState's hats encode them: 1 up,
// 2 right, 4 down and 8 left.
Mask uint32 `protobuf:"varint,2,opt,name=mask,proto3" json:"mask,omitempty"`
// contains filtered or unexported fields
}
HatPosition reads a hat as a button, held while the hat points any of the directions its mask names.
func (*HatPosition) CloneMessageVT ¶
func (m *HatPosition) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*HatPosition) CloneVT ¶
func (m *HatPosition) CloneVT() *HatPosition
func (*HatPosition) EqualMessageVT ¶
func (this *HatPosition) EqualMessageVT(thatMsg any) bool
func (*HatPosition) EqualVT ¶
func (this *HatPosition) EqualVT(that *HatPosition) bool
func (*HatPosition) GetHat ¶
func (x *HatPosition) GetHat() uint32
func (*HatPosition) GetMask ¶
func (x *HatPosition) GetMask() uint32
func (*HatPosition) MarshalJSON ¶
func (x *HatPosition) MarshalJSON() ([]byte, error)
MarshalJSON marshals the HatPosition to JSON.
func (*HatPosition) MarshalProtoJSON ¶
func (x *HatPosition) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the HatPosition message to JSON.
func (*HatPosition) MarshalProtoText ¶
func (x *HatPosition) MarshalProtoText() string
func (*HatPosition) MarshalToSizedBufferVT ¶
func (m *HatPosition) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HatPosition) MarshalToVT ¶
func (m *HatPosition) MarshalToVT(dAtA []byte) (int, error)
func (*HatPosition) MarshalVT ¶
func (m *HatPosition) MarshalVT() (dAtA []byte, err error)
func (*HatPosition) ProtoMessage ¶
func (*HatPosition) ProtoMessage()
func (*HatPosition) Reset ¶
func (x *HatPosition) Reset()
func (*HatPosition) SizeVT ¶
func (m *HatPosition) SizeVT() (n int)
func (*HatPosition) String ¶
func (x *HatPosition) String() string
func (*HatPosition) UnmarshalJSON ¶
func (x *HatPosition) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the HatPosition from JSON.
func (*HatPosition) UnmarshalProtoJSON ¶
func (x *HatPosition) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the HatPosition message from JSON.
func (*HatPosition) UnmarshalVT ¶
func (m *HatPosition) UnmarshalVT(dAtA []byte) error
type PlayerControllers ¶
type PlayerControllers struct {
// Player is the player's slot.
Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
// Stream is the state of the stream that brings them.
Stream ControllerStream `protobuf:"varint,2,opt,name=stream,proto3" json:"stream,omitempty"`
// Controllers lists the player's devices, empty while Stream is none,
// opening or unavailable.
Controllers []*Controller `protobuf:"bytes,3,rep,name=controllers,proto3" json:"controllers,omitempty"`
// Reason says why the stream is unavailable, such as SDL3's load error,
// and is empty in every other state.
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
PlayerControllers is one watched player's controllers in a frame.
func (*PlayerControllers) CloneMessageVT ¶
func (m *PlayerControllers) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*PlayerControllers) CloneVT ¶
func (m *PlayerControllers) CloneVT() *PlayerControllers
func (*PlayerControllers) EqualMessageVT ¶
func (this *PlayerControllers) EqualMessageVT(thatMsg any) bool
func (*PlayerControllers) EqualVT ¶
func (this *PlayerControllers) EqualVT(that *PlayerControllers) bool
func (*PlayerControllers) GetControllers ¶
func (x *PlayerControllers) GetControllers() []*Controller
func (*PlayerControllers) GetPlayer ¶
func (x *PlayerControllers) GetPlayer() int32
func (*PlayerControllers) GetReason ¶
func (x *PlayerControllers) GetReason() string
func (*PlayerControllers) GetStream ¶
func (x *PlayerControllers) GetStream() ControllerStream
func (*PlayerControllers) MarshalJSON ¶
func (x *PlayerControllers) MarshalJSON() ([]byte, error)
MarshalJSON marshals the PlayerControllers to JSON.
func (*PlayerControllers) MarshalProtoJSON ¶
func (x *PlayerControllers) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the PlayerControllers message to JSON.
func (*PlayerControllers) MarshalProtoText ¶
func (x *PlayerControllers) MarshalProtoText() string
func (*PlayerControllers) MarshalToSizedBufferVT ¶
func (m *PlayerControllers) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PlayerControllers) MarshalToVT ¶
func (m *PlayerControllers) MarshalToVT(dAtA []byte) (int, error)
func (*PlayerControllers) MarshalVT ¶
func (m *PlayerControllers) MarshalVT() (dAtA []byte, err error)
func (*PlayerControllers) ProtoMessage ¶
func (*PlayerControllers) ProtoMessage()
func (*PlayerControllers) Reset ¶
func (x *PlayerControllers) Reset()
func (*PlayerControllers) SizeVT ¶
func (m *PlayerControllers) SizeVT() (n int)
func (*PlayerControllers) String ¶
func (x *PlayerControllers) String() string
func (*PlayerControllers) UnmarshalJSON ¶
func (x *PlayerControllers) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the PlayerControllers from JSON.
func (*PlayerControllers) UnmarshalProtoJSON ¶
func (x *PlayerControllers) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the PlayerControllers message from JSON.
func (*PlayerControllers) UnmarshalVT ¶
func (m *PlayerControllers) UnmarshalVT(dAtA []byte) error
type ThresholdDirection ¶
type ThresholdDirection int32
ThresholdDirection says which side of its threshold holds an axis button.
const ( // THRESHOLD_DIRECTION_UNKNOWN is no side; a binding entry naming it is // ignored. ThresholdDirection_THRESHOLD_DIRECTION_UNKNOWN ThresholdDirection = 0 // THRESHOLD_DIRECTION_ABOVE holds the button at or above the threshold. ThresholdDirection_THRESHOLD_DIRECTION_ABOVE ThresholdDirection = 1 // THRESHOLD_DIRECTION_BELOW holds the button at or below the threshold. ThresholdDirection_THRESHOLD_DIRECTION_BELOW ThresholdDirection = 2 )
func (ThresholdDirection) Enum ¶
func (x ThresholdDirection) Enum() *ThresholdDirection
func (ThresholdDirection) MarshalJSON ¶
func (x ThresholdDirection) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ThresholdDirection to JSON.
func (ThresholdDirection) MarshalProtoJSON ¶
func (x ThresholdDirection) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the ThresholdDirection to JSON.
func (ThresholdDirection) MarshalProtoText ¶
func (x ThresholdDirection) MarshalProtoText() string
func (ThresholdDirection) MarshalText ¶
func (x ThresholdDirection) MarshalText() ([]byte, error)
MarshalText marshals the ThresholdDirection to text.
func (ThresholdDirection) String ¶
func (x ThresholdDirection) String() string
func (*ThresholdDirection) UnmarshalJSON ¶
func (x *ThresholdDirection) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the ThresholdDirection from JSON.
func (*ThresholdDirection) UnmarshalProtoJSON ¶
func (x *ThresholdDirection) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the ThresholdDirection from JSON.
func (*ThresholdDirection) UnmarshalText ¶
func (x *ThresholdDirection) UnmarshalText(b []byte) error
UnmarshalText unmarshals the ThresholdDirection from text.
type WatchControllersRequest ¶
type WatchControllersRequest struct {
// Player is the player's slot.
Player int32 `protobuf:"varint,1,opt,name=player,proto3" json:"player,omitempty"`
// Watch is true to start watching and false to stop.
Watch bool `protobuf:"varint,2,opt,name=watch,proto3" json:"watch,omitempty"`
// Binding sets this mod's command binding for the player while it
// watches, replacing the one it set before; a watch without one clears
// it. The client applies the binding most recently set by a mod that
// still watches.
Binding *CommandBinding `protobuf:"bytes,3,opt,name=binding,proto3,oneof" json:"binding,omitempty"`
// contains filtered or unexported fields
}
WatchControllersRequest starts or stops a mod's watch of one player's controllers.
func (*WatchControllersRequest) CloneMessageVT ¶
func (m *WatchControllersRequest) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*WatchControllersRequest) CloneVT ¶
func (m *WatchControllersRequest) CloneVT() *WatchControllersRequest
func (*WatchControllersRequest) EqualMessageVT ¶
func (this *WatchControllersRequest) EqualMessageVT(thatMsg any) bool
func (*WatchControllersRequest) EqualVT ¶
func (this *WatchControllersRequest) EqualVT(that *WatchControllersRequest) bool
func (*WatchControllersRequest) GetBinding ¶
func (x *WatchControllersRequest) GetBinding() *CommandBinding
func (*WatchControllersRequest) GetPlayer ¶
func (x *WatchControllersRequest) GetPlayer() int32
func (*WatchControllersRequest) GetWatch ¶
func (x *WatchControllersRequest) GetWatch() bool
func (*WatchControllersRequest) MarshalJSON ¶
func (x *WatchControllersRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals the WatchControllersRequest to JSON.
func (*WatchControllersRequest) MarshalProtoJSON ¶
func (x *WatchControllersRequest) MarshalProtoJSON(s *json.MarshalState)
MarshalProtoJSON marshals the WatchControllersRequest message to JSON.
func (*WatchControllersRequest) MarshalProtoText ¶
func (x *WatchControllersRequest) MarshalProtoText() string
func (*WatchControllersRequest) MarshalToSizedBufferVT ¶
func (m *WatchControllersRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*WatchControllersRequest) MarshalToVT ¶
func (m *WatchControllersRequest) MarshalToVT(dAtA []byte) (int, error)
func (*WatchControllersRequest) MarshalVT ¶
func (m *WatchControllersRequest) MarshalVT() (dAtA []byte, err error)
func (*WatchControllersRequest) ProtoMessage ¶
func (*WatchControllersRequest) ProtoMessage()
func (*WatchControllersRequest) Reset ¶
func (x *WatchControllersRequest) Reset()
func (*WatchControllersRequest) SizeVT ¶
func (m *WatchControllersRequest) SizeVT() (n int)
func (*WatchControllersRequest) String ¶
func (x *WatchControllersRequest) String() string
func (*WatchControllersRequest) UnmarshalJSON ¶
func (x *WatchControllersRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON unmarshals the WatchControllersRequest from JSON.
func (*WatchControllersRequest) UnmarshalProtoJSON ¶
func (x *WatchControllersRequest) UnmarshalProtoJSON(s *json.UnmarshalState)
UnmarshalProtoJSON unmarshals the WatchControllersRequest message from JSON.
func (*WatchControllersRequest) UnmarshalVT ¶
func (m *WatchControllersRequest) UnmarshalVT(dAtA []byte) error