~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/gameengine/GamePlayer/common/windows/GPW_KeyboardDevice.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * $Id: GPW_KeyboardDevice.h 26841 2010-02-12 13:34:04Z campbellbarton $
3
 
 *
4
 
 * ***** BEGIN GPL LICENSE BLOCK *****
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or
7
 
 * modify it under the terms of the GNU General Public License
8
 
 * as published by the Free Software Foundation; either version 2
9
 
 * of the License, or (at your option) any later version.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 * GNU General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software Foundation,
18
 
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
 
 *
20
 
 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21
 
 * All rights reserved.
22
 
 *
23
 
 * The Original Code is: all of this file.
24
 
 *
25
 
 * Contributor(s): none yet.
26
 
 *
27
 
 * ***** END GPL LICENSE BLOCK *****
28
 
 */
29
 
 
30
 
#ifndef _GPW_KEYBOARDDEVICE_H_
31
 
#define _GPW_KEYBOARDDEVICE_H_
32
 
 
33
 
#pragma warning (disable : 4786)
34
 
 
35
 
#include <windows.h>
36
 
#include "GPC_KeyboardDevice.h"
37
 
 
38
 
/**
39
 
 * Win32 implementation of GPC_KeyboardDevice.
40
 
 * The contructor fills the keyboard code translation map.
41
 
 * Base class GPC_KeyboardDevice does the rest.
42
 
 * @see SCA_IInputDevice
43
 
 */
44
 
class GPW_KeyboardDevice : public GPC_KeyboardDevice
45
 
{
46
 
public:
47
 
        GPW_KeyboardDevice(void);
48
 
 
49
 
        virtual ~GPW_KeyboardDevice(void);
50
 
 
51
 
        void ConvertWinEvent(WPARAM wParam, bool isDown);
52
 
 
53
 
protected:
54
 
 
55
 
        void ConvertModifierKey(WPARAM wParam, bool isDown);
56
 
 
57
 
        void CheckForSeperateLeftRight(WPARAM wParam);
58
 
 
59
 
        /** Stores the capability of this system to distinguish left and right modifier keys. */
60
 
        bool m_separateLeftRight;
61
 
        /** Stores the initialization state of the member m_leftRightDistinguishable. */
62
 
        bool m_separateLeftRightInitialized;
63
 
};
64
 
 
65
 
#endif //_GPW_KEYBOARDDEVICE_H_
66