InputHandler

From WiCWiki

Revision as of 22:28, 20 December 2007 by anchelito (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents

by the Insane Bastards & A New Hope

Overview

Version: 0.4 (2007-12-20)
Download: [1]

Visit us on Sourceforge: [2]
SVN: https://wiccustomviewer.svn.sourceforge.net/svnroot/wiccustomviewer/InputHandler (you have to join us to upload to the svn)

Wanna help developing?

Visit the Sourceforge-Site and join us!

About

The InputHandler is a little library provides methods for checking user-input, f. ex. whether the user presses a button. It takes some concept of the user-interaction seen in the wic-viewer.

Instructions

Place the folder "input_handler" in a folder that is included by WiC's PYTHONPATH. Look into the "keys_scancodes.py" for an overview of possible keys. (mouse-keys are in the "InputHandler.py")

API

checkSinglePress(key, action)
checkDoublePress(key, singleAction, doubleAction, dblPressTime=0.2)
checkHoldingKey(key, action, timeFirst=0.4, timeNext=0.03)

checkMultipleKeysSinglePress(keys, action)
checkMultipleKeysDoublePress(keys, singleAction, doubleAction, dblPressTime=0.2)
checkHoldingMultipleKeys(keys, action, timeFirst=0.4, timeNext=0.03)
Personal tools
User Created Content