diff options
| author | a1xd <[email protected]> | 2021-08-28 01:19:18 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-09-23 22:28:44 -0400 |
| commit | 5b659e1cfbc4b8fbbd2f2bf41dc716929976c77d (patch) | |
| tree | 4bffba32fa508494a268b6f53513fb3c7b1e3e5c /common/utility.hpp | |
| parent | Merge pull request #107 from a1xd/1.5.0-fix (diff) | |
| download | rawaccel-5b659e1cfbc4b8fbbd2f2bf41dc716929976c77d.tar.xz rawaccel-5b659e1cfbc4b8fbbd2f2bf41dc716929976c77d.zip | |
add per-device configuration
adds input and [in, out] cap for classic mode
adds input cap for power mode
change wrapper/input, now gets useful device names
change (now dev specific) dpi to adjust sensitivity
change y sensitivity to y/x ratio
remove spaced LUTs
grapher and convert do not build
Diffstat (limited to 'common/utility.hpp')
| -rw-r--r-- | common/utility.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/utility.hpp b/common/utility.hpp index cbd19e3..63026c3 100644 --- a/common/utility.hpp +++ b/common/utility.hpp @@ -85,4 +85,10 @@ namespace rawaccel { template <typename T, typename U> inline constexpr bool is_same_v = is_same<T, U>::value; + template <class T> struct is_rvalue_ref { static constexpr bool value = false; }; + template <class T> struct is_rvalue_ref<T&&> { static constexpr bool value = true; }; + + template <class T> + inline constexpr bool is_rvalue_ref_v = is_rvalue_ref<T>::value; + } |