{"id":13744167,"url":"https://github.com/StackAndHeap/joystick-ane","last_synced_at":"2025-05-09T02:32:59.147Z","repository":{"id":6878637,"uuid":"8127845","full_name":"StackAndHeap/joystick-ane","owner":"StackAndHeap","description":"Adobe AIR Native Extension Joystick Library","archived":false,"fork":false,"pushed_at":"2013-02-10T21:15:28.000Z","size":13425,"stargazers_count":18,"open_issues_count":2,"forks_count":4,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-15T15:42:17.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StackAndHeap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-10T20:48:08.000Z","updated_at":"2021-09-10T18:02:28.000Z","dependencies_parsed_at":"2022-09-16T06:00:50.046Z","dependency_job_id":null,"html_url":"https://github.com/StackAndHeap/joystick-ane","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackAndHeap%2Fjoystick-ane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackAndHeap%2Fjoystick-ane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackAndHeap%2Fjoystick-ane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackAndHeap%2Fjoystick-ane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StackAndHeap","download_url":"https://codeload.github.com/StackAndHeap/joystick-ane/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253177862,"owners_count":21866409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T05:01:04.275Z","updated_at":"2025-05-09T02:32:54.137Z","avatar_url":"https://github.com/StackAndHeap.png","language":"ActionScript","funding_links":[],"categories":["Native Extension","AIR Native Extensions"],"sub_categories":["Hardware ANE"],"readme":"Joystick Library for Adobe AIR\n==============================\n\nAdobe AIR Native Extension\n\nThis library enables you to extend the Adobe AIR runtime with native support for working with joysticks and gamepads. Currently the library supports only Windows.\n\nTo build the extension and the sample application, simply run the build.xml Ant script.\n\nExample usage\n-------------\n\n    var joystickManager:JoystickManager = new JoystickManager();\n    joystickManager.addEventListener( JoystickEvent.CONNECTED, ext_connectedHandler );\n    joystickManager.addEventListener( JoystickEvent.DISCONNECTED, ext_disconnectedHandler );\n    joystickManager.addEventListener( JoystickEvent.MOVE, ext_moveHandler );\n    joystickManager.addEventListener( JoystickEvent.PRESS, ext_pressHandler );\n    joystickManager.addEventListener( JoystickEvent.RELEASE, ext_releaseHandler );\n    \n    private function ext_connectedHandler( event:JoystickEvent ):void {\n      trace( \"Joystick \" + event.index + \" connected\" );\n    }\n    \n    private function ext_disconnectedHandler( event:JoystickEvent ):void {\n      trace( \"Joystick \" + event.index + \" disconnected\" );\n    }\n    \n    private function ext_moveHandler( event:JoystickMoveEvent ):void {\n      trace( \"Axis \" + event.axisIndex + \" moved to value \" + event.value + \" (raw value: \" + event.rawValue + \") on joystick \" + event.index );\n    }\n    \n    private function ext_pressHandler( event:JoystickButtonEvent ):void {\n      trace(\"Button \" + event.buttonIndex + \" pressed on joystick \" + event.index );\n    }\n    \n    private function ext_releaseHandler( event:JoystickButtonEvent ):void {\n      trace( \"Button \" + event.buttonIndex + \" released on joystick \" + event.index );\n    }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStackAndHeap%2Fjoystick-ane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FStackAndHeap%2Fjoystick-ane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStackAndHeap%2Fjoystick-ane/lists"}