Usermode/AxWin4 - Mouse input in progress
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / compositor.cpp
index 4052145..6f512c8 100644 (file)
@@ -40,6 +40,7 @@ bool CCompositor::GetScreenDims(unsigned int ScreenID, unsigned int* W, unsigned
 
 void CCompositor::Redraw()
 {
+       _SysDebug("CCompositor::Redraw");
        // Redraw the screen and clear damage rects
        if( m_damageRects.empty() )
                return ;
@@ -50,6 +51,7 @@ void CCompositor::Redraw()
        // For all windows, check for intersection with damage rects
        for( auto rect : m_damageRects )
        {
+               _SysDebug("rect=(%i,%i) %ix%i", rect.m_x, rect.m_y, rect.m_w, rect.m_h);
                // window list should be sorted by draw order (lowest first)
                for( auto window : m_windows )
                {
@@ -89,5 +91,16 @@ void CCompositor::BlitFromSurface(const CSurface& dest, const CRect& src_rect)
        }
 }
 
+void CCompositor::MouseMove(unsigned int Cursor, unsigned int X, unsigned int Y, int dX, int dY)
+{
+       _SysDebug("MouseButton(%i, %i,%i, %+i,%+i)", Cursor, X, Y, dX, dY);
+       m_video.SetCursorPos(X+dX, Y+dY);
+}
+
+void CCompositor::MouseButton(unsigned int Cursor, unsigned int X, unsigned int Y, eMouseButton Button, bool Press)
+{
+       _SysDebug("MouseButton(%i, %i,%i, %i=%i)", Cursor, X, Y, Button, Press);
+}
+
 }      // namespace AxWin
 

UCC git Repository :: git.ucc.asn.au