Changeset View
Changeset View
Standalone View
Standalone View
platform.cpp
Show All 16 Lines | |||||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "platform.h" | 20 | #include "platform.h" | ||
21 | #include <config-kwin.h> | 21 | #include <config-kwin.h> | ||
22 | #include "composite.h" | 22 | #include "composite.h" | ||
23 | #include "cursor.h" | 23 | #include "cursor.h" | ||
24 | #include "effects.h" | 24 | #include "effects.h" | ||
25 | #include "input.h" | | |||
26 | #include <KCoreAddons> | 25 | #include <KCoreAddons> | ||
27 | #include "overlaywindow.h" | 26 | #include "overlaywindow.h" | ||
28 | #include "outline.h" | 27 | #include "outline.h" | ||
29 | #include "pointer_input.h" | 28 | #include "pointer_input.h" | ||
30 | #include "scene.h" | 29 | #include "scene.h" | ||
31 | #include "screenedge.h" | 30 | #include "screenedge.h" | ||
32 | #include "wayland_server.h" | 31 | #include "wayland_server.h" | ||
33 | #include "colorcorrection/manager.h" | 32 | #include "colorcorrection/manager.h" | ||
▲ Show 20 Lines • Show All 154 Lines • ▼ Show 20 Line(s) | |||||
188 | void Platform::keymapChange(int fd, uint32_t size) | 187 | void Platform::keymapChange(int fd, uint32_t size) | ||
189 | { | 188 | { | ||
190 | if (!input()) { | 189 | if (!input()) { | ||
191 | return; | 190 | return; | ||
192 | } | 191 | } | ||
193 | input()->processKeymapChange(fd, size); | 192 | input()->processKeymapChange(fd, size); | ||
194 | } | 193 | } | ||
195 | 194 | | |||
196 | void Platform::pointerAxisHorizontal(qreal delta, quint32 time) | 195 | void Platform::pointerAxisHorizontal(qreal delta, quint32 time, qint32 discreteDelta, InputRedirection::PointerAxisSource source) | ||
197 | { | 196 | { | ||
198 | if (!input()) { | 197 | if (!input()) { | ||
199 | return; | 198 | return; | ||
200 | } | 199 | } | ||
201 | input()->processPointerAxis(InputRedirection::PointerAxisHorizontal, delta, time); | 200 | input()->processPointerAxis(InputRedirection::PointerAxisHorizontal, delta, discreteDelta, source, time); | ||
202 | } | 201 | } | ||
203 | 202 | | |||
204 | void Platform::pointerAxisVertical(qreal delta, quint32 time) | 203 | void Platform::pointerAxisVertical(qreal delta, quint32 time, qint32 discreteDelta, InputRedirection::PointerAxisSource source) | ||
205 | { | 204 | { | ||
206 | if (!input()) { | 205 | if (!input()) { | ||
207 | return; | 206 | return; | ||
208 | } | 207 | } | ||
209 | input()->processPointerAxis(InputRedirection::PointerAxisVertical, delta, time); | 208 | input()->processPointerAxis(InputRedirection::PointerAxisVertical, delta, discreteDelta, source, time); | ||
210 | } | 209 | } | ||
211 | 210 | | |||
212 | void Platform::pointerButtonPressed(quint32 button, quint32 time) | 211 | void Platform::pointerButtonPressed(quint32 button, quint32 time) | ||
213 | { | 212 | { | ||
214 | if (!input()) { | 213 | if (!input()) { | ||
215 | return; | 214 | return; | ||
216 | } | 215 | } | ||
217 | input()->processPointerButton(button, InputRedirection::PointerButtonPressed, time); | 216 | input()->processPointerButton(button, InputRedirection::PointerButtonPressed, time); | ||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |