纳金网

标题: Easy Input 1.4 [打印本页]

作者: ZackD    时间: 2014-11-1 23:20
标题: Easy Input 1.4

Snap13.jpg

Requires Unity 4.5.1 or higher.

Easy Input makes input handling...well, easy.

With Easy Input, you have access to advanced information like how long a button has been pressed and double-click support for all keys and buttons. You can even setup actions that can be triggered by any number of inputs to simplify game logic.

Not only is it super simple to grab user input information, but it simplifies the process of setting up and supporting the Xbox controller across platforms too.

Components Include:
* Core classes to manage the input
* Unity InputManager asset (as a zip)
* Sample scene

Features Include:
* Action alias support with multiple inputs
* Action alias support with helpers (ie 'Alt + T')
* Ability to change input mappings at run-time
* Xbox controller support for Windows and Mac
* Advanced info for all keys and buttons:
-Time pressed & elapsed ‘pressed’ time
-Time released & elapsed ‘released’ time
-Double-press
-Toggle
* Simple access to mouse states
* Simple access to keyboard states
* Simple access to Xbox controller states
* Complete code base to use as-is or modify
* Simplified setup process

Usage:
Setting up an Action Alias is super simple. Just add something like this:

InputManager.AddAlias("Jump", EnumInput.SPACE);

InputManager.AddAlias("Jump", EnumInput.GAMEPAD_0_BUTTON);

InputManager.AddAlias("Jump", EnumInput.MOUSE_RIGHT_BUTTON);

Then, test for a jump using this:

if (InputManager.IsJustPressed("Jump"))
{
// Jump
}

Easy Input v1.4 (Sep 02, 2014).rar

1.03 MB, 阅读权限: 10, 下载次数: 46


作者: hyui    时间: 2014-11-2 01:33
Great share thanks 1
作者: moonljj    时间: 2014-11-2 11:13
Great share thanks
作者: Kadina    时间: 2014-11-2 11:27
Great share thanks
作者: HIDEOKOJIMA    时间: 2014-11-2 17:13
Thanks for sharing this one !
作者: cgjch8    时间: 2014-11-2 17:59
good share
作者: orokborokhulu    时间: 2014-11-2 21:54
nice sharing
作者: animan    时间: 2014-11-3 14:22
Thanks for sharing!
作者: 我不再年轻    时间: 2014-11-6 14:53
不错,支持一下
作者: simonxing    时间: 2014-12-4 11:33
好东西,必须赞一个
作者: robtl    时间: 2014-12-7 22:15
Nice~感谢分享
作者: fieldchao    时间: 2015-1-20 10:45
确实是个好东西 研究下
作者: Icestar    时间: 2015-1-22 15:26
谢谢分享




欢迎光临 纳金网 (http://wwww.narkii.com/club/) Powered by Discuz! X2.5