src/video/qtopia/SDL_sysmouse.cc
author Sam Lantinga <slouken@libsdl.org>
Mon, 29 May 2006 04:04:35 +0000
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
permissions -rw-r--r--
more tweaking indent options
slouken@371
     1
/*
slouken@371
     2
    SDL - Simple DirectMedia Layer
slouken@1312
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@371
     4
slouken@371
     5
    This library is free software; you can redistribute it and/or
slouken@1312
     6
    modify it under the terms of the GNU Lesser General Public
slouken@371
     7
    License as published by the Free Software Foundation; either
slouken@1312
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@371
     9
slouken@371
    10
    This library is distributed in the hope that it will be useful,
slouken@371
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@371
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1312
    13
    Lesser General Public License for more details.
slouken@371
    14
slouken@1312
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1312
    16
    License along with this library; if not, write to the Free Software
slouken@1312
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@371
    18
slouken@371
    19
    Sam Lantinga
slouken@371
    20
    slouken@libsdl.org
slouken@371
    21
*/
slouken@1403
    22
#include "SDL_config.h"
slouken@371
    23
slouken@371
    24
#include "SDL_QWin.h"
slouken@371
    25
slouken@1662
    26
extern "C"
slouken@1662
    27
{
slouken@371
    28
slouken@371
    29
#include "SDL_sysmouse_c.h"
slouken@371
    30
slouken@371
    31
/* The implementation dependent data for the window manager cursor */
slouken@1662
    32
    struct WMcursor
slouken@1662
    33
    {
slouken@1662
    34
        char *bits;
slouken@1662
    35
    };
slouken@1668
    36
    WMcursor *QT_CreateWMCursor(_THIS,
slouken@1668
    37
                                Uint8 * data, Uint8 * mask, int w, int h,
slouken@1668
    38
                                int hot_x, int hot_y)
slouken@1662
    39
    {
slouken@1662
    40
        static WMcursor dummy;
slouken@1662
    41
          dummy.bits = 0;
slouken@1662
    42
          return &dummy;
slouken@1662
    43
    }
slouken@371
    44
slouken@1668
    45
    int QT_ShowWMCursor(_THIS, WMcursor * cursor)
slouken@1662
    46
    {
slouken@1662
    47
        return 1;
slouken@1662
    48
    }
slouken@371
    49
slouken@1668
    50
    void QT_FreeWMCursor(_THIS, WMcursor * cursor)
slouken@1662
    51
    {
slouken@1662
    52
    }
slouken@371
    53
slouken@1668
    54
    void QT_WarpWMCursor(_THIS, Uint16 x, Uint16 y)
slouken@1662
    55
    {
slouken@1668
    56
        SDL_Win->setMousePos(QPoint(x, y));
slouken@1662
    57
    }
slouken@371
    58
slouken@1662
    59
};                              /* Extern C */
slouken@1662
    60
slouken@1662
    61
/* vi: set ts=4 sw=4 expandtab: */