|
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 |
|
47 EXPORT_C TUint8 TConsoleKey::PointerNumber() const |
|
48 // |
|
49 // Return the pointer number |
|
50 // |
|
51 { |
|
52 return((*((TConsoleKey *)this))().iPointerNumber); |
|
53 } |
|
54 |
|
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 |