sl@0: // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32\ewsrv\co_utl.cpp sl@0: // sl@0: // sl@0: sl@0: #include "ws_std.h" sl@0: sl@0: EXPORT_C void Panic(TConsolePanic aPanic) sl@0: // sl@0: // Panic the client side console code sl@0: // sl@0: { sl@0: sl@0: User::Panic(_L("Console-TWIN"),aPanic); sl@0: } sl@0: sl@0: EXPORT_C TKeyCode TConsoleKey::Code() const sl@0: // sl@0: // Return the keycode sl@0: // sl@0: { sl@0: sl@0: return((*((TConsoleKey *)this))().iCode); sl@0: } sl@0: sl@0: EXPORT_C TInt TConsoleKey::Modifiers() const sl@0: // sl@0: // Return the key modifiers sl@0: // sl@0: { sl@0: sl@0: return((*((TConsoleKey *)this))().iModifiers); sl@0: } sl@0: sl@0: EXPORT_C TInt TConsoleKey::Type() const sl@0: // sl@0: // Return the key type sl@0: // sl@0: { sl@0: sl@0: return((*((TConsoleKey *)this))().iType); sl@0: } sl@0: sl@0: EXPORT_C TPoint TConsoleKey::MousePos() const sl@0: // sl@0: // Return the mouse position sl@0: // sl@0: { sl@0: sl@0: return((*((TConsoleKey *)this))().iMousePos); sl@0: } sl@0: