author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Thu, 02 Sep 2010 21:54:16 +0300 | |
changeset 259 | 57b9594f5772 |
parent 90 | 947f0dc9f7a8 |
permissions | -rw-r--r-- |
0 | 1 |
// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 |
// All rights reserved. |
|
3 |
// This component and the accompanying materials are made available |
|
4 |
// under the terms of the License "Eclipse Public License v1.0" |
|
5 |
// which accompanies this distribution, and is available |
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 |
// |
|
8 |
// Initial Contributors: |
|
9 |
// Nokia Corporation - initial contribution. |
|
10 |
// |
|
11 |
// Contributors: |
|
12 |
// |
|
13 |
// Description: |
|
14 |
// e32\ewsrv\co_utl.cpp |
|
15 |
// |
|
16 |
// |
|
17 |
||
18 |
#include "ws_std.h" |
|
19 |
||
20 |
EXPORT_C void Panic(TConsolePanic aPanic) |
|
21 |
// |
|
22 |
// Panic the client side console code |
|
23 |
// |
|
24 |
{ |
|
25 |
||
26 |
User::Panic(_L("Console-TWIN"),aPanic); |
|
27 |
} |
|
28 |
||
29 |
EXPORT_C TKeyCode TConsoleKey::Code() const |
|
30 |
// |
|
31 |
// Return the keycode |
|
32 |
// |
|
33 |
{ |
|
34 |
||
35 |
return((*((TConsoleKey *)this))().iCode); |
|
36 |
} |
|
37 |
||
38 |
EXPORT_C TInt TConsoleKey::Modifiers() const |
|
39 |
// |
|
40 |
// Return the key modifiers |
|
41 |
// |
|
42 |
{ |
|
43 |
||
44 |
return((*((TConsoleKey *)this))().iModifiers); |
|
45 |
} |
|
46 |
||
90
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
47 |
EXPORT_C TUint8 TConsoleKey::PointerNumber() const |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
48 |
// |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
49 |
// Return the pointer number |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
50 |
// |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
51 |
{ |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
52 |
return((*((TConsoleKey *)this))().iPointerNumber); |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
53 |
} |
947f0dc9f7a8
Revision: 201015
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
54 |
|
0 | 55 |
EXPORT_C TInt TConsoleKey::Type() const |
56 |
// |
|
57 |
// Return the key type |
|
58 |
// |
|
59 |
{ |
|
60 |
||
61 |
return((*((TConsoleKey *)this))().iType); |
|
62 |
} |
|
63 |
||
64 |
EXPORT_C TPoint TConsoleKey::MousePos() const |
|
65 |
// |
|
66 |
// Return the mouse position |
|
67 |
// |
|
68 |
{ |
|
69 |
||
70 |
return((*((TConsoleKey *)this))().iMousePos); |
|
71 |
} |
|
72 |