touchkit.hh (12655:a1646f7c13ab) touchkit.hh (12656:335489e574f3)
1/*
2 * Copyright (c) 2010, 2017-2018 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 43 unchanged lines hidden (view full) ---

52
53 public:
54 PS2TouchKit(const PS2TouchKitParams *p);
55
56 void serialize(CheckpointOut &cp) const override;
57 void unserialize(CheckpointIn &cp) override;
58
59 protected: // PS2Device
1/*
2 * Copyright (c) 2010, 2017-2018 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 43 unchanged lines hidden (view full) ---

52
53 public:
54 PS2TouchKit(const PS2TouchKitParams *p);
55
56 void serialize(CheckpointOut &cp) const override;
57 void unserialize(CheckpointIn &cp) override;
58
59 protected: // PS2Device
60 void recv(uint8_t data) override;
60 bool recv(const std::vector<uint8_t> &data) override;
61
62 public: // VncMouse
63 void mouseAt(uint16_t x, uint16_t y, uint8_t buttons) override;
64
65 protected:
66 /** The vnc server we're connected to (if any) */
67 VncInput *const vnc;
68
69 /**
61
62 public: // VncMouse
63 void mouseAt(uint16_t x, uint16_t y, uint8_t buttons) override;
64
65 protected:
66 /** The vnc server we're connected to (if any) */
67 VncInput *const vnc;
68
69 /**
70 * If the controller should ignore the next N data bytes and
71 * acknowledge them. This occurs when the driver is attempting to
72 * setup some feature we don't care about.
73 */
74 int ackNext;
75
76 /**
77 * Has the driver been initialized in TouchKit mode? The model
78 * suppresses touch event generation until this is true.
79 */
80 bool driverInitialized;
81};
82
83#endif // __DEV_PS2_TOUCHKIT_HH__
84
70 * Has the driver been initialized in TouchKit mode? The model
71 * suppresses touch event generation until this is true.
72 */
73 bool driverInitialized;
74};
75
76#endif // __DEV_PS2_TOUCHKIT_HH__
77