Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

GFxUI.GFxInteraction


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
/**********************************************************************

Filename    :   GFxInteraction.uc
Content     :   GFx Interaction class, its instance is maintained
                in GFxGameViewportClient

Copyright   :   (c) 2006-2007 Scaleform Corp. All Rights Reserved.

Portions of the integration code is from Epic Games as identified by Perforce annotations.
Copyright 2010 Epic Games, Inc. All rights reserved.

Notes       :   Since 'ucc' will prefix all class names with 'U'
                there is not conflict with GFx file / class naming.

Licensees may use this file in accordance with the valid Scaleform
Commercial License Agreement provided with the software.

This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING 
THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR ANY PURPOSE.

**********************************************************************/


class GFxInteraction extends Interaction
    inherits(FCallbackEventDevice)
	native;

/** Set focus movie and input capture mode */
native function GFxMoviePlayer GetFocusMovie(int ControllerId);

native function NotifyGameSessionEnded();

native function NotifyPlayerAdded(int PlayerIndex, LocalPlayer AddedPlayer);

native function NotifyPlayerRemoved(int PlayerIndex, LocalPlayer RemovedPlayer);

native function CloseAllMoviePlayers();

cpptext
{
#if WITH_GFx
	/** Initializes this interaction, allocates the GFxEngine */
    virtual void Init();

    virtual void BeginDestroy();
    virtual UBOOL IsReadyForFinishDestroy();
    virtual void FinishDestroy();

	/** Set the Engine's viewport to the viewport specified */
	virtual void SetRenderViewport(class FViewport* InViewport);

	virtual UBOOL InputKey(INT ControllerId,FName Key,EInputEvent Event,FLOAT AmountDepressed,UBOOL bGamepad);
	virtual UBOOL InputAxis(INT ControllerId,FName Key,FLOAT Delta,FLOAT DeltaTime, UBOOL bGamepad);
	virtual UBOOL InputChar(INT ControllerId,TCHAR Character);

	/**
	 * Called once a frame to update the interaction's state.
	 * @param	DeltaTime - The time since the last frame.
	 */
	virtual void Tick(FLOAT DeltaTime);

	/**	FExec interface */
	virtual UBOOL Exec(const TCHAR* Cmd, FOutputDevice& Ar);

    /* === FCallbackEventDevice interface === */
    /**
     * Called when the viewport has been resized.
     */
    virtual void Send( ECallbackEventType InType, class FViewport* InViewport, UINT InMessage);
	
	/** Statistics Gathering */
	void CaptureRenderFrameStats();

#endif // WITH_GFx
}

defaultproperties
{

}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: fr 8-10-2010 16:50:40.000 - Creation time: ti 22-3-2011 19:57:06.541 - Created with UnCodeX