Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDeviceAlreadyOwned = errors.New("vJoy Device already open by this application") ErrDeviceBusy = errors.New("vJoy Device is owned by another application") ErrDeviceMissing = errors.New("vJoy Device is missing: either does not exist or the driver is down") ErrDeviceUnknown = errors.New("Unknown vJoy Device error") ErrReset = errors.New("Reset failed") ErrUpdate = errors.New("UpdateVJD failed") ErrUnknownName = errors.New("Unknown name (axis, button or pov)") )
Functions ¶
func Available ¶
func Available() bool
Available check if the vjoy.dll was successfully loaded and is enabled. Other functions in this library will likely panic if Available returns false.
func ManufacturerString ¶
func ManufacturerString() string
func ProductString ¶
func ProductString() string
func SerialNumberString ¶
func SerialNumberString() string
Types ¶
type Axis ¶
type Axis struct {
// contains filtered or unexported fields
}
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device represents an open vJoy device
func (*Device) Axis ¶
Axis returns the given Axis to update cached values for this device, to be submitted by Update()
Click to show internal directories.
Click to hide internal directories.