Ejemplo n.º 1
0
                //! \brief Update this object with the current state of the pointer.
                public void Update()
                {
                    var block = new NativeWimp.PointerBlock();

                    Wimp.GetPointerInfo(out block);

                    Pos.X        = block.Pos.X;
                    Pos.Y        = block.Pos.Y;
                    Buttons      = (ButtonState)block.Buttons;
                    WindowHandle = block.WindowHandle;
                    IconHandle   = block.IconHandle;

                    Window = GetInstance(WindowHandle);
                    Icon   = Window != null?Window.GetIcon(IconHandle) : null;
                }
Ejemplo n.º 2
0
 internal static extern IntPtr Wimp_GetPointerInfo([Out, MarshalAs(UnmanagedType.Struct)]
                                                   out NativeWimp.PointerBlock block);