diff options
| author | 2020-11-05 15:08:48 +0000 | |
|---|---|---|
| committer | 2020-11-05 15:08:48 +0000 | |
| commit | 5872c14d7f1217cfc86e9fe90bb01f0afc042ded (patch) | |
| tree | d334d5b4ab4f6aa895855678c8f36ea860d0a057 /include/input/KeyCharacterMap.h | |
| parent | f7e67dbf909c4642dab729ffde8ef299ae507be9 (diff) | |
| parent | faa986c076dffff0be41dd866462494a76d0ad90 (diff) | |
Merge "Fix libinput mac build, hopefully."
Diffstat (limited to 'include/input/KeyCharacterMap.h')
| -rw-r--r-- | include/input/KeyCharacterMap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/input/KeyCharacterMap.h b/include/input/KeyCharacterMap.h index 8542577a8b..23f8ddf764 100644 --- a/include/input/KeyCharacterMap.h +++ b/include/input/KeyCharacterMap.h @@ -19,7 +19,9 @@ #include <stdint.h> +#ifdef __linux__ #include <binder/IBinder.h> +#endif #include <android-base/result.h> #include <input/Input.h> @@ -132,11 +134,13 @@ public: void tryRemapKey(int32_t scanCode, int32_t metaState, int32_t* outKeyCode, int32_t* outMetaState) const; +#ifdef __linux__ /* Reads a key map from a parcel. */ static std::shared_ptr<KeyCharacterMap> readFromParcel(Parcel* parcel); /* Writes a key map to a parcel. */ void writeToParcel(Parcel* parcel) const; +#endif KeyCharacterMap(const KeyCharacterMap& other); |