return int from ins,outs in device

This commit is contained in:
onyx-and-iris 2022-07-01 01:19:16 +01:00
parent 7e480c7082
commit df83f9c15f

View File

@ -12,13 +12,13 @@ func newDevice() *device {
}
// Ins returns the total number of physical input devices
func (d *device) Ins() uint64 {
return get_num_devices("in")
func (d *device) Ins() int {
return int(get_num_devices("in"))
}
// Ins returns the total number of physical input devices
func (d *device) Outs() uint64 {
return get_num_devices("out")
func (d *device) Outs() int {
return int(get_num_devices("out"))
}
func (d *device) Input(i int) devDesc {