kernel/eka/ewsrv/co_utl.cpp
changeset 0 a41df078684a
child 19 4a8fed1c0ef6
equal deleted inserted replaced
-1:000000000000 0:a41df078684a
       
     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 TInt TConsoleKey::Type() const
       
    48 //
       
    49 // Return the key type
       
    50 //
       
    51 	{
       
    52 
       
    53 	return((*((TConsoleKey *)this))().iType);
       
    54 	}
       
    55 
       
    56 EXPORT_C TPoint TConsoleKey::MousePos() const
       
    57 //
       
    58 // Return the mouse position
       
    59 //
       
    60 	{
       
    61 
       
    62 	return((*((TConsoleKey *)this))().iMousePos);
       
    63 	}
       
    64