aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xinput/xinput.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-11 01:58:52 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-11 01:58:52 -0400
commit3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f (patch)
treec9f52fa078fc860d7327e7a8441b2b7bc07f7cce /nexgb/xinput/xinput.go
parentc00652934e4ec68016a152b9bea10273b0be8726 (diff)
downloadhaven-3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f.tar.gz
haven-3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f.tar.xz
haven-3e6b3544934cb71e3a3b0edf9bc184241ac1ad7f.zip
add a little more docs for errors
Diffstat (limited to 'nexgb/xinput/xinput.go')
-rw-r--r--nexgb/xinput/xinput.go21
1 files changed, 18 insertions, 3 deletions
diff --git a/nexgb/xinput/xinput.go b/nexgb/xinput/xinput.go
index 2c2247c..0cb711b 100644
--- a/nexgb/xinput/xinput.go
+++ b/nexgb/xinput/xinput.go
@@ -2,7 +2,7 @@
package xinput
/*
- This file was generated by xinput.xml on May 10 2012 11:56:19pm EDT.
+ This file was generated by xinput.xml on May 11 2012 1:58:36am EDT.
This file is automatically generated. Edit at your peril!
*/
@@ -40,6 +40,8 @@ func init() {
xgb.NewExtErrorFuncs["XInputExtension"] = make(map[int]xgb.NewErrorFun)
}
+// Skipping definition for base type 'Float'
+
// Skipping definition for base type 'Card8'
// Skipping definition for base type 'Int16'
@@ -62,8 +64,6 @@ func init() {
// Skipping definition for base type 'Bool'
-// Skipping definition for base type 'Float'
-
const (
ValuatorModeRelative = 0
ValuatorModeAbsolute = 1
@@ -4372,10 +4372,13 @@ func (err DeviceError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadDevice error. If no bad value exists, 0 is returned.
func (err DeviceError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadDevice error.
+
func (err DeviceError) Error() string {
fieldVals := make([]string, 0, 0)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -4415,10 +4418,13 @@ func (err EventError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadEvent error. If no bad value exists, 0 is returned.
func (err EventError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadEvent error.
+
func (err EventError) Error() string {
fieldVals := make([]string, 0, 0)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -4458,10 +4464,13 @@ func (err ModeError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadMode error. If no bad value exists, 0 is returned.
func (err ModeError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadMode error.
+
func (err ModeError) Error() string {
fieldVals := make([]string, 0, 0)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -4501,10 +4510,13 @@ func (err DeviceBusyError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadDeviceBusy error. If no bad value exists, 0 is returned.
func (err DeviceBusyError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadDeviceBusy error.
+
func (err DeviceBusyError) Error() string {
fieldVals := make([]string, 0, 0)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)
@@ -4544,10 +4556,13 @@ func (err ClassError) SequenceId() uint16 {
return err.Sequence
}
+// BadId returns the 'BadValue' number if one exists for the BadClass error. If no bad value exists, 0 is returned.
func (err ClassError) BadId() uint32 {
return 0
}
+// Error returns a rudimentary string representation of the BadClass error.
+
func (err ClassError) Error() string {
fieldVals := make([]string, 0, 0)
fieldVals = append(fieldVals, "NiceName: "+err.NiceName)