Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/stackandheap/joystick-ane

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/stackandheap/joystick-ane

  • v0.0.0-20130210211527-17b031464c4f
  • Source
  • Go
  • Socket score

Version published
Created
Source

Joystick Library for Adobe AIR

Adobe AIR Native Extension

This library enables you to extend the Adobe AIR runtime with native support for working with joysticks and gamepads. Currently the library supports only Windows.

To build the extension and the sample application, simply run the build.xml Ant script.

Example usage

var joystickManager:JoystickManager = new JoystickManager();
joystickManager.addEventListener( JoystickEvent.CONNECTED, ext_connectedHandler );
joystickManager.addEventListener( JoystickEvent.DISCONNECTED, ext_disconnectedHandler );
joystickManager.addEventListener( JoystickEvent.MOVE, ext_moveHandler );
joystickManager.addEventListener( JoystickEvent.PRESS, ext_pressHandler );
joystickManager.addEventListener( JoystickEvent.RELEASE, ext_releaseHandler );

private function ext_connectedHandler( event:JoystickEvent ):void {
  trace( "Joystick " + event.index + " connected" );
}

private function ext_disconnectedHandler( event:JoystickEvent ):void {
  trace( "Joystick " + event.index + " disconnected" );
}

private function ext_moveHandler( event:JoystickMoveEvent ):void {
  trace( "Axis " + event.axisIndex + " moved to value " + event.value + " (raw value: " + event.rawValue + ") on joystick " + event.index );
}

private function ext_pressHandler( event:JoystickButtonEvent ):void {
  trace("Button " + event.buttonIndex + " pressed on joystick " + event.index );
}

private function ext_releaseHandler( event:JoystickButtonEvent ):void {
  trace( "Button " + event.buttonIndex + " released on joystick " + event.index );
}

FAQs

Package last updated on 10 Feb 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc