PageRenderTime 33ms CodeModel.GetById 17ms app.highlight 13ms RepoModel.GetById 1ms app.codeStats 0ms

/packages/ptc/src/wince/base/wincekeyboardd.inc

https://github.com/slibre/freepascal
Pascal | 55 lines | 14 code | 5 blank | 36 comment | 0 complexity | 4297b1995672361d5e33d9aa337b67c7 MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
 1{
 2    This file is part of the PTCPas framebuffer library
 3    Copyright (C) 2007, 2009, 2010  Nikolay Nikolov (nickysn@users.sourceforge.net)
 4
 5    This library is free software; you can redistribute it and/or
 6    modify it under the terms of the GNU Lesser General Public
 7    License as published by the Free Software Foundation; either
 8    version 2.1 of the License, or (at your option) any later version
 9    with the following modification:
10
11    As a special exception, the copyright holders of this library give you
12    permission to link this library with independent modules to produce an
13    executable, regardless of the license terms of these independent modules,and
14    to copy and distribute the resulting executable under terms of your choice,
15    provided that you also meet, for each linked independent module, the terms
16    and conditions of the license of that module. An independent module is a
17    module which is not derived from or based on this library. If you modify
18    this library, you may extend this exception to your version of the library,
19    but you are not obligated to do so. If you do not wish to do so, delete this
20    exception statement from your version.
21
22    This library is distributed in the hope that it will be useful,
23    but WITHOUT ANY WARRANTY; without even the implied warranty of
24    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25    Lesser General Public License for more details.
26
27    You should have received a copy of the GNU Lesser General Public
28    License along with this library; if not, write to the Free Software
29    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
30}
31
32type
33  TWinCEKeyboard = Class(TObject)
34  private
35    { data }
36    FEventQueue: TEventQueue;
37
38    { flag data }
39    m_enabled: Boolean;
40
41    { modifiers }
42    m_alt: Boolean;
43    m_shift: Boolean;
44    m_control: Boolean;
45  public
46    { setup }
47    constructor Create(EventQueue: TEventQueue);
48
49    { window procedure }
50    function WndProc(hWnd: HWND; message: DWord; wParam: WPARAM; lParam: LPARAM): LRESULT;
51
52    { control }
53    procedure enable;
54    procedure disable;
55  end;