Documentation ¶
Overview ¶
Package vrpn provides a wrapper around a simple vrpn server.
All types in this package wrap around the required vrpn_wrapper.dll. It is important to know that objects are created in the C++ side, and will not be automatically garbage collected, even if the go objects are.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analog ¶
type Analog struct {
// contains filtered or unexported fields
}
Analog is an analog device on the vrpn server.
type Button ¶
type Button struct {
// contains filtered or unexported fields
}
Button is an button device on the vrpn server.
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection represents a vrpn server.
func NewConnection ¶
func NewConnection(port int) *Connection
Creates a new vrpn server at the given port number.
func (*Connection) Mainloop ¶
func (c *Connection) Mainloop()
Mainloop must be called each loop after each device's main loop in order to ensure that vrpn does all it's nessisary transmissions and bookkeeping.
Click to show internal directories.
Click to hide internal directories.