Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elsassph/nme-apple-remote
haxe NME extension to interact with the Apple Remote Control in your Mac NME application.
https://github.com/elsassph/nme-apple-remote
Last synced: about 2 months ago
JSON representation
haxe NME extension to interact with the Apple Remote Control in your Mac NME application.
- Host: GitHub
- URL: https://github.com/elsassph/nme-apple-remote
- Owner: elsassph
- Created: 2012-04-19T12:53:38.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-04-19T14:07:52.000Z (over 12 years ago)
- Last Synced: 2024-04-15T15:04:29.340Z (9 months ago)
- Language: Objective-C
- Homepage:
- Size: 136 KB
- Stars: 17
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**haxe NME extension for Apple Remote (Mac)**
This is a native extension for haxe NME, allowing Mac applications to easily
interact with the Apple Remote Control.**Usage**
Reference the extension in your .nmml:
Add a listener in your code:
import nme.peripherals.AppleRemote;
...
AppleRemote.setEventHandler(onRemote);
...
private function onRemote(e) {
trace("received " + e);
}**Running the test application**
cd Project
nme test ExtensionTest.nmml cpp**Recompiling the extension**
cd Extension/project
haxelib run hxcpp Build.xml**License:**
This extension and example license:
Unless indicated otherwise, this code was created by Philippe Elsass and
provided under a MIT-style license.
Copyright (c) Philippe Elsass. All rights reserved.Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.The extension includes a copy of some classes from Martin Kahr's [Remote Control
Wrapper][1], released under the MIT license (see license information in the relevant
files).[1]: http://martinkahr.com/source-code/