/usr/share/mixxx/controllers/HID-Trackpad.js is in mixxx-data 2.0.0~dfsg-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | //
// Demo script to print events from apple bluetooth trackpad on OS/X
// NOTE: the trackpad doesn't seem to actually send events to us. This
// is just a silly example anyway
// Copyright (C) 2012, Ilkka Tuohela
// Feel free to use whatever way wish1
//
HIDTrackpad = new HIDTrackpadDevice();
HIDTrackpad.init = function(id) {
HIDTrackpad.id = id;
HIDTrackpad.registerInputPackets();
HIDTrackpad.registerOutputPackets();
HIDTrackpad.registerScalers();
HIDTrackpad.registerCallbacks();
HIDDebug("HID Trackpad Initialized: " + HIDTrackpad.id);
}
HIDTrackpad.shutdown = function() {
HIDDebug("HID Trackpad Shutdown: " + HIDTrackpad.id);
}
HIDTrackpad.incomingData = function(data,length) {
var controller = HIDTrackpad.controller;
if (controller==undefined) {
HIDDebug("Error in script initialization: controller not found");
return;
}
controller.parsePacket(data,length);
}
|