@@ -400,7 +400,7 @@ def fn(self):
400
400
return self .path
401
401
402
402
def get_absinfo (self , axis_num ):
403
- """
403
+ '''
404
404
Return current :class:`AbsInfo` for input device axis
405
405
406
406
Arguments
@@ -410,20 +410,14 @@ def get_absinfo(self, axis_num):
410
410
411
411
Example
412
412
-------
413
-
414
413
>>> device.get_absinfo(ecodes.ABS_X)
415
414
AbsInfo(value=1501, min=-32768, max=32767, fuzz=0, flat=128, resolution=0)
416
-
417
- """
415
+ '''
418
416
return AbsInfo (* _input .ioctl_EVIOCGABS (self .fd , axis_num ))
419
417
420
418
def set_absinfo (self , axis_num , value = None , min = None , max = None , fuzz = None , flat = None , resolution = None ):
421
- """
422
- Set AbsInfo values for input device.
423
-
424
- Only values set will be overwritten.
425
-
426
- See :class:`AbsInfo` for more info about the arguments
419
+ '''
420
+ Update :class:`AbsInfo` values. Only specified values will be overwritten.
427
421
428
422
Arguments
429
423
---------
@@ -437,9 +431,8 @@ def set_absinfo(self, axis_num, value=None, min=None, max=None, fuzz=None, flat=
437
431
You can also unpack AbsInfo tuple that will overwrite all values
438
432
439
433
>>> device.set_absinfo(ecodes.ABS_Y, *AbsInfo(0, -2000, 2000, 0, 15, 0))
434
+ '''
440
435
441
-
442
- """
443
436
cur_absinfo = self .get_absinfo (axis_num )
444
437
new_absinfo = AbsInfo (value if value else cur_absinfo .value ,
445
438
min if min else cur_absinfo .min ,
0 commit comments