UDN
Search public documentation:
MOBAKitKBMouseCH
English Translation
日本語訳
한국어
Interested in the Unreal Engine?
Visit the Unreal Technology site.
Looking for jobs and company info?
Check out the Epic games site.
Questions about support via UDN?
Contact the UDN Staff
日本語訳
한국어
Interested in the Unreal Engine?
Visit the Unreal Technology site.
Looking for jobs and company info?
Check out the Epic games site.
Questions about support via UDN?
Contact the UDN Staff
MOBA初学者工具包- 键盘和鼠标
上次对UDK测试时间为 2012 年 5 月
概述
在电脑上,MOBA包默认使用键盘和鼠标作为主要接口。 PC平台有两种主要类,一种是PC特定的HUD类,另一种是PC特定的PlayerController类。 PlayerController类主要处理键盘接口,而HUD类主要处理鼠标接口。
UDKMOBAHUD_PC
函数
- PostRender() - 每一帧都被调用用来渲染HUD。 它调用 UDKMOBAHUD_PC::ProcessCommands().
- ProcessCommands() -当 Canvas 为有效时处理输入。 如果Scaleform要求输入, 则要么调用 UDKMOBAGFx_HUD::HandlePendingLeftClickCommand() ,要么调用 UDKMOBAGFx_HUD::HandlePendingRightClickCommand() ,否则调用 UDKMOBAPlayerController_PC::HandlePendingLeftClickCommand() 或 UDKMOBAPlayerController_PC::HandlePendingRightClickCommand() 。
UDKMOBAPlayerController_PC
函数
- IsHUDCapturingMouseInput() -如果HUD目前在捕捉鼠标输入则返回true. 这可以防止鼠标被从几个地方捕捉和处理。
- StartFire() - 一般这个函数绑定鼠标的左键和右键。 它仅仅设置 UDKMOBAHUD_PC.PendingLeftClickCommand 或 UDKMOBAHUD_PC.PendingRightClickCommand ,而其会在之后被处理。
- HandlePendingLeftClickCommand() - 这个函数处理鼠标左键点击,而此一般用来在迷你地图上ping或描画。