src/video/win32/SDL_win32keyboard.c
author Sam Lantinga <slouken@libsdl.org>
Mon, 10 Jul 2006 21:04:37 +0000
changeset 1895 c121d94672cb
child 2308 514f7c1651fc
permissions -rw-r--r--
SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
slouken@1895
     1
/*
slouken@1895
     2
    SDL - Simple DirectMedia Layer
slouken@1895
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@1895
     4
slouken@1895
     5
    This library is free software; you can redistribute it and/or
slouken@1895
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1895
     7
    License as published by the Free Software Foundation; either
slouken@1895
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1895
     9
slouken@1895
    10
    This library is distributed in the hope that it will be useful,
slouken@1895
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1895
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1895
    13
    Lesser General Public License for more details.
slouken@1895
    14
slouken@1895
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1895
    16
    License along with this library; if not, write to the Free Software
slouken@1895
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1895
    18
slouken@1895
    19
    Sam Lantinga
slouken@1895
    20
    slouken@libsdl.org
slouken@1895
    21
*/
slouken@1895
    22
#include "SDL_config.h"
slouken@1895
    23
slouken@1895
    24
#include "SDL_win32video.h"
slouken@1895
    25
slouken@1895
    26
#include "../../events/SDL_keyboard_c.h"
slouken@1895
    27
slouken@1895
    28
void
slouken@1895
    29
WIN_InitKeyboard(_THIS)
slouken@1895
    30
{
slouken@1895
    31
    SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
slouken@1895
    32
    SDL_Keyboard keyboard;
slouken@1895
    33
slouken@1895
    34
    SDL_zero(keyboard);
slouken@1895
    35
    data->keyboard = SDL_AddKeyboard(&keyboard, -1);
slouken@1895
    36
}
slouken@1895
    37
slouken@1895
    38
void
slouken@1895
    39
WIN_QuitKeyboard(_THIS)
slouken@1895
    40
{
slouken@1895
    41
    SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
slouken@1895
    42
slouken@1895
    43
    SDL_DelKeyboard(data->keyboard);
slouken@1895
    44
}
slouken@1895
    45
slouken@1895
    46
/* vi: set ts=4 sw=4 expandtab: */