Input: Make DeviceEvent use doubles internally
Change the DeviceEvent InternalEvent to use doubles for its valuators, instead of data and data_frac. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
626f487b97
commit
2d9beeb217
@@ -95,8 +95,7 @@ struct _DeviceEvent
|
||||
struct {
|
||||
uint8_t mask[(MAX_VALUATORS + 7)/8]; /**< Valuator mask */
|
||||
uint8_t mode[(MAX_VALUATORS + 7)/8]; /**< Valuator mode (Abs or Rel)*/
|
||||
int32_t data[MAX_VALUATORS]; /**< Valuator data */
|
||||
int32_t data_frac[MAX_VALUATORS]; /**< Fractional part for data */
|
||||
double data[MAX_VALUATORS]; /**< Valuator data */
|
||||
} valuators;
|
||||
struct {
|
||||
uint32_t base; /**< XKB base modifiers */
|
||||
|
||||
Reference in New Issue
Block a user