Documentation ¶
Index ¶
- func LaunchGroovyCore(path string) error
- type GroovyInput
- type GroovyInputPacket
- type GroovyJoy
- type InputKey
- type Modeline
- type UdpClient
- func (client *UdpClient) Close()
- func (client *UdpClient) CmdBlit(frameBuffer []byte)
- func (client *UdpClient) CmdClose()
- func (client *UdpClient) CmdInit()
- func (client *UdpClient) CmdSwitchres(modeline *Modeline)
- func (client *UdpClient) PollInput() (chan GroovyInputPacket, chan bool)
- func (client *UdpClient) SendMTU(buffer []byte)
- func (client *UdpClient) SendPacket(buffer []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LaunchGroovyCore ¶
Types ¶
type GroovyInput ¶
type GroovyInput struct { PrevJoy1 GroovyJoy Joy1 GroovyJoy PrevJoy2 GroovyJoy Joy2 GroovyJoy IsDisabled bool }
func (*GroovyInput) AddInputPacket ¶
func (input *GroovyInput) AddInputPacket(packet GroovyInputPacket)
func (*GroovyInput) IsJustPressed ¶
func (input *GroovyInput) IsJustPressed(joyNum uint8, key InputKey) bool
func (*GroovyInput) IsJustReleased ¶
func (input *GroovyInput) IsJustReleased(joyNum uint8, key InputKey) bool
type GroovyInputPacket ¶
type GroovyInputPacket struct { JoyFrame uint32 JoyOrder uint8 Joy1Mask uint16 // bitmask Joy2Mask uint16 // bitmask }
func InputPacketFromBuffer ¶
func InputPacketFromBuffer(buf []uint8) GroovyInputPacket
type GroovyJoy ¶
type GroovyJoy struct { Right bool Left bool Down bool Up bool B1 bool B2 bool B3 bool B4 bool B5 bool B6 bool B7 bool B8 bool B9 bool }
func GroovyJoyFromMask ¶
type Modeline ¶
type UdpClient ¶
type UdpClient struct {
// contains filtered or unexported fields
}
func NewUdpClient ¶
func (*UdpClient) CmdSwitchres ¶
func (*UdpClient) PollInput ¶
func (client *UdpClient) PollInput() (chan GroovyInputPacket, chan bool)
func (*UdpClient) SendPacket ¶
Click to show internal directories.
Click to hide internal directories.