Difference between revisions of "Common Organization of Controls Kit"

m (Changelog)
Line 30: Line 30:
 
== Changelog ==
 
== Changelog ==
 
* 1.1:  
 
* 1.1:  
* fixed:
+
** fixed:
** capturing an input now sets both "previous" and "current" tables to captured input value
+
*** capturing an input now sets both "previous" and "current" tables to captured input value
** mouse axis delta mode no longer requires mouse pointer to be on the corresponding side of the offset
+
*** mouse axis delta mode no longer requires mouse pointer to be on the corresponding side of the offset
*added:
+
** added:
** getDeviceName function returns literal name of a device assiged to specified map
+
*** getDeviceName function returns literal name of a device assiged to specified map
*changed:
+
** changed:
** reloadJoystick now returns true on success
+
*** reloadJoystick now returns true on success
 
 
*1.0:  
+
* 1.0:  
* first release version
+
** first release version
  
 
== See also ==
 
== See also ==

Revision as of 07:45, 30 July 2013

Common Organization of Controls Kit is a tool for handling control over your LÖVE games.

It enables you to easily define a (several of) set of control bindings to be used in your game, and provides a very user-friendly methods for handling it, e.g. you can access all gathered data as a table member, and it has a function to grab a user input to store it into control map, and to unset it, which is really handy in controls setup screen etc.

This library have much detail to it, please consutlt the manual.

NOTE: the library only support latest released version of LÖVE, and the author only support latest released version of the library. There may be no backwards compatibility.

Features

  • Create one or several control objects, with each of them having their own controls set
  • Define, extend and access sets of control bindings easily
  • Utilize all input devices and all their abilities supported by LÖVE
  • Capture user input device and value and automatically bind it; bind a device and key manually
  • Optionally block input callbacks and update function during input capture, to ensure safe capture
  • Unbind controls easily
  • Set mouse offset and output values scaling factor; ignore mouse motion during input capture
  • Delta-axis mode for all axis-like devices
  • Reload (re-pickup) previously used joysticks
  • 4 psychoanatomic adjustments for joystick hat lateral input, separate option for allowing diagonal input
  • Literal arguments for enum-accepting functions, along with numbers
  • "Control Mode" virtual variable (have no actual effect, a convenience feature)

This is a feature list of the latest version, which is 1.1

Links

Changelog

  • 1.1:
    • fixed:
      • capturing an input now sets both "previous" and "current" tables to captured input value
      • mouse axis delta mode no longer requires mouse pointer to be on the corresponding side of the offset
    • added:
      • getDeviceName function returns literal name of a device assiged to specified map
    • changed:
      • reloadJoystick now returns true on success
  • 1.0:
    • first release version

See also