1 // 2 // Copyright (c) 2010-2018 Antmicro 3 // Copyright (c) 2011-2015 Realtime Embedded 4 // 5 // This file is licensed under the MIT License. 6 // Full license text is available in 'licenses/MIT.txt'. 7 // 8 using Antmicro.Renode.Peripherals.Input; 9 10 namespace Antmicro.Renode.Extensions.Analyzers.Video.Handlers 11 { 12 internal class RelativePointerHandler : PointerHandler 13 { RelativePointerHandler(IRelativePositionPointerInput input)14 public RelativePointerHandler(IRelativePositionPointerInput input) : base(input) 15 { 16 } 17 PointerMoved(int x, int y, int dx, int dy)18 public override void PointerMoved(int x, int y, int dx, int dy) 19 { 20 ((IRelativePositionPointerInput)input).MoveBy(dx, dy); 21 } 22 } 23 } 24 25