New commits:
http://git.directfb.org/?p=core/DirectFB.git;a=commit;h=6ce13e67d264010c5ae002fedc60364f31671aea
commit 6ce13e67d264010c5ae002fedc60364f31671aea
Author: Denis Oliver Kropp <[email protected]>
Date:   Sat Oct 30 16:18:13 2010 +0200

    windows: Extended cursor capabilities for advanced input devices.
    
    Add DFBWindowCursorFlags (per window) with the following definitions:
      DWCF_RELATIVE   receive relative coordinates instead of absolute
      DWCF_EXPLICIT   if window has focus it's also the pointer window
      DWCF_UNCLIPPED  pointer is not clipped against stack boundaries
      DWCF_TRAPPED    pointer is clipped against the window boundaries
      DWCF_FIXED      pointer does not move at all, but still may send relative 
motion
      DWCF_INVISIBLE  cursor opacity is zero when this window is pointer window
    
    Add DWEF_RELATIVE to DFBWindowEventFlags to indicate x/y are relative 
coordinates.
    
    Add IDirectFBWindow::SetCursorFlags() to set the per window 
DFBWindowCursorFlags.
    
    Add IDirectFBWindow::SetCursorResolution() to define per window coordinate 
space,
    e.g. SetCursorResolution( 100, 300 ) will always send 50,150 in the middle 
of the
    window.
    
    Add IDirectFBWindow::SetCursorPosition() to warp the pointer relative to the
    window based on the per window coordinate space if set.
    
    --
    
    Add CWCF_CURSOR_FLAGS and CWCF_CURSOR_RESOLUTION to CoreWindowConfigFlags.
    
    Add cursor_flags and cursor_resolution to CoreWindowConfig.
    
    --
    
    Add dfb_wm_set_cursor_position() called by 
IDirectFBWindow::SetCursorPosition().
    
    --
    
    Add SetCursorPosition() to WMFuncs.
    Add wm_set_cursor_position() to wm module header and set it for 
SetCursorPosition().
    
    --
    
    Removed setting of cx and cy from dfb_window_post_event(), instead this is 
done
    in window manager modules now.
    
    --
    
    Set cx and cy of window events in default window manager module now.
    
    Add unimplemented wm_set_cursor_position() to default window manager module.

 include/directfb.h            |   46 ++++++++++++++++++++++++++-
 src/core/windows.c            |    9 -----
 src/core/windows.h            |    7 +++-
 src/core/wm.c                 |   20 +++++++++++
 src/core/wm.h                 |   10 ++++++
 src/core/wm_module.h          |    7 ++++
 src/windows/idirectfbwindow.c |   71 +++++++++++++++++++++++++++++++++++++++++
 wm/default/default.c          |   18 ++++++++++
 8 files changed, 177 insertions(+), 11 deletions(-)

_______________________________________________
directfb-cvs mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-cvs

Reply via email to