author | John Imhofe |
Tue, 06 Jul 2010 11:40:58 +0100 | |
branch | RCL_3 |
changeset 38 | 83c58605f049 |
parent 19 | 4a8fed1c0ef6 |
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 |
||
19
4a8fed1c0ef6
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
47 |
EXPORT_C TUint8 TConsoleKey::PointerNumber() const |
4a8fed1c0ef6
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
48 |
// |
4a8fed1c0ef6
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
49 |
// Return the pointer number |
4a8fed1c0ef6
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
50 |
// |
4a8fed1c0ef6
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
51 |
{ |
4a8fed1c0ef6
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
52 |
return((*((TConsoleKey *)this))().iPointerNumber); |
4a8fed1c0ef6
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
53 |
} |
4a8fed1c0ef6
Revision: 201007
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 |