uControl/ 0040755 0000765 0000024 00000000000 07435006402 011650 5 ustar shane staff uControl/CVS/ 0040755 0000765 0000024 00000000000 07435006402 012303 5 ustar shane staff uControl/CVS/Entries 0100644 0000765 0000024 00000001157 07435006402 013640 0 ustar shane staff /ODHIDHack.cpp/1.1.1.1/Wed Feb 20 20:47:41 2002//
/USB caps lock notes.rtf/1.1.1.1/Wed Feb 20 20:47:43 2002//
/kextMain.c/1.1.1.1/Wed Feb 20 20:47:41 2002//
/mkbindist.sh/1.1.1.1/Wed Feb 20 20:47:41 2002//
/mkimage.sh/1.1.1.1/Wed Feb 20 20:47:41 2002//
/oldReadme.rtf/1.1.1.1/Wed Feb 20 20:47:41 2002//
/uControl Package.icns/1.1.1.1/Wed Feb 20 20:47:41 2002//
/uControl.icns/1.1.1.1/Wed Feb 20 20:47:42 2002//
/uControl.pmsp/1.1.1.1/Wed Feb 20 20:47:42 2002//
/ucenv/1.1.1.1/Wed Feb 20 20:47:41 2002//
D/.FBCLockFolder////
D/English.lproj////
D/IOKit////
D/perlish////
D/resources////
D/uControl////
D/uControl.pbproj////
uControl/CVS/Repository 0100644 0000765 0000024 00000000027 07435005602 014402 0 ustar shane staff /home/cvsroot/uControl
uControl/CVS/Root 0100644 0000765 0000024 00000000016 07435005602 013144 0 ustar shane staff /home/cvsroot
uControl/English.lproj/ 0040755 0000765 0000024 00000000000 07435006202 014364 5 ustar shane staff uControl/English.lproj/CVS/ 0040755 0000765 0000024 00000000000 07435006202 015017 5 ustar shane staff uControl/English.lproj/CVS/Entries 0100644 0000765 0000024 00000000070 07435006202 016345 0 ustar shane staff /InfoPlist.strings/1.1.1.1/Wed Feb 20 20:47:43 2002//
D
uControl/English.lproj/CVS/Repository 0100644 0000765 0000024 00000000045 07435005603 017121 0 ustar shane staff /home/cvsroot/uControl/English.lproj
uControl/English.lproj/CVS/Root 0100644 0000765 0000024 00000000016 07435005603 015663 0 ustar shane staff /home/cvsroot
uControl/English.lproj/InfoPlist.strings 0100644 0000765 0000024 00000001575 07435005557 017727 0 ustar shane staff
CFBundleGetInfoString
uControl version 1.0.1, Copyright 2001 Shane Celis
CFBundleName
uControl
CFBundleShortVersionString
uControl version 1.0.1
NSHumanReadableCopyright
Copyright 2001 Shane Celis
OSBundleLibraries
com.apple.iokit.IOHIDSystem
1.1
com.apple.kernel.bsd
1.1
com.apple.kernel.iokit
1.1
com.apple.kernel.mach
1.1
uControl/IOKit/ 0040755 0000765 0000024 00000000000 07435006202 012625 5 ustar shane staff uControl/IOKit/CVS/ 0040755 0000765 0000024 00000000000 07435006202 013260 5 ustar shane staff uControl/IOKit/CVS/Entries 0100644 0000765 0000024 00000000061 07435006202 014606 0 ustar shane staff /Readme.rtf/1.1.1.1/Wed Feb 20 20:47:43 2002//
D
uControl/IOKit/CVS/Repository 0100644 0000765 0000024 00000000035 07435005603 015361 0 ustar shane staff /home/cvsroot/uControl/IOKit
uControl/IOKit/CVS/Root 0100644 0000765 0000024 00000000016 07435005603 014124 0 ustar shane staff /home/cvsroot
uControl/IOKit/Readme.rtf 0100644 0000765 0000024 00000002430 07435005557 014547 0 ustar shane staff {\rtf1\mac\ansicpg10000\cocoartf100
{\fonttbl\f0\fswiss\fcharset77 Helvetica;\f1\fswiss\fcharset77 Helvetica-Bold;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww9020\viewh12940\viewkind0
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f0\fs20 \cf0 For more information about iJect for the new iBook please visit http://www.obdev.at/products/iject/\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs24 \cf0 \
\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f1\b\fs40 \cf0 Darwin IOKit Headers\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f0\b0\fs24 \cf0 \
You need the Darwin IOKit headers for your specific version of Mac OS X in order to compile iJect. Check out the appropriate version of xnu from the Darwin archive and replace this folder with Darwin's folder xnu/iokit/IOKit. You can then build as usual with ProjectBuilder or call pbxbuild from the commandline.\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs8 \cf0 \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs24 \cf0 We cannot re-distribute the Darwin headers due to copyright issues...\
\
_________________________________________\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs18 \cf0 Copyright 2001, Heger, Schwarzott, Starkjohann & Tiefenbrunner OEG.}
uControl/kextMain.c 0100644 0000765 0000024 00000001141 07435005555 013576 0 ustar shane staff /*
* Name: kextMain.c
* Project: uControl
* Author: Christian Starkjohann (Modified by Shane Celis
#include
extern int ODHidInit(void);
extern int ODHidExit(void);
kern_return_t uControl_start (kmod_info_t * ki, void * d)
{
return ODHidInit() == 0 ? KERN_SUCCESS : KERN_FAILURE;
}
kern_return_t uControl_stop (kmod_info_t * ki, void * d)
{
return ODHidExit() == 0 ? KERN_SUCCESS : KERN_FAILURE;
}
uControl/mkbindist.sh 0100644 0000765 0000024 00000001005 07435005555 014171 0 ustar shane staff #!/bin/sh
rm -rf BinaryDist
pbxbuild
echo "=========================================================================="
echo "=========================================================================="
echo "=========================================================================="
mkdir BinaryDist
mkdir BinaryDist/StartupItems
cp -R uControl BinaryDist/StartupItems
SRC=$(dirname $0)
mv $SRC/build/uControl.kext BinaryDist/StartupItems/uControl
cp Readme.rtf BinaryDist
sh mkimage.sh uControl
open BinaryDist
uControl/mkimage.sh 0100644 0000765 0000024 00000000423 07435005555 013622 0 ustar shane staff #!/bin/sh
volumeName="$1"
if [ -z "$volumeName" ]; then
volumeName=uControl
fi
image="$volumeName".dmg
hdiutil create -megabytes 4 "$image" -layout NONE -zeroImage
disk=`hdid -nomount "$image"`
sudo newfs_hfs -v "$volumeName" "$disk"
hdiutil eject "$disk"
hdid "$image"
uControl/ODHIDHack.cpp 0100644 0000765 0000024 00000023121 07435005555 013776 0 ustar shane staff /*
* Name: ODHIDHack.cpp
* Project: uControl
* Author: Shane Celis
* Based on Original work from iJect by Christian Starkjohann
* Creation Date: 2001-07-23
* Tabsize: 4
* Copyright: GNU General Public License version 2.0
*/
#ifdef __cplusplus
extern "C" {
#endif
#include
#include
// uncomment this for a ridiculous amount of loggage
//#define OD_DEBUG
// uncomment this to disable any changing of the key strokes
//#define LOG_ONLY 1 (doesn't work yet)
// uncomment this for enter key to be mapped to command key
#define ENTER_NO_MORE
// uncomment this for an interesting twist
//#define TWERQ
/* flags */
#define CTRL_FLAG 0x40000
#define CAPS_FLAG 0x10000
#define CMD_FLAG 0x100000
#define SPACE_KEY 49
#define CTRL_KEY 59
#define CMD_KEY 55
#define CAPS_KEY 57
#define ENTER_KEY 52
#define KEY_DOWN 10
#define KEY_UP 11
#define KEY_MOD 12
#define NO_TRANS -1
extern int ODHidInit(void);
extern int ODHidExit(void);
#ifdef __cplusplus
}
#endif
#include
#include
#include
static void *oldVtable = NULL;
static void *myVtable = NULL;
class ODHIDHack : public IOHIDSystem
{
/* we must not declare anything which is not in our superclass
* since we want to pose as our superclass.
*/
public:
virtual void keyboardEvent(unsigned eventType,
/* flags */ unsigned flags,
/* keyCode */ unsigned key,
/* charCode */ unsigned charCode,
/* charSet */ unsigned charSet,
/* originalCharCode */ unsigned origCharCode,
/* originalCharSet */ unsigned origCharSet,
/* keyboardType */ unsigned keyboardType,
/* repeat */ bool repeat,
/* atTime */ AbsoluteTime ts);
virtual void keyboardSpecialEvent(unsigned eventType,
/* flags */ unsigned flags,
/* keyCode */ unsigned key,
/* specialty */ unsigned flavor,
/* guid */ UInt64 guid,
/* repeat */ bool repeat,
/* atTime */ AbsoluteTime ts);
};
int ODHidInit(void)
{
IOHIDSystem *p;
ODHIDHack *sub;
if(oldVtable != NULL){
printf("module uControl already loaded!\n");
return 1;
}
if(myVtable == NULL){
sub = new ODHIDHack();
myVtable = *(void **)sub;
sub->free();
}
p = IOHIDSystem::instance();
oldVtable = *(void **)p;
*(void **)p = myVtable;
return 0;
}
int ODHidExit(void)
{
IOHIDSystem *p;
if(oldVtable != NULL){
p = IOHIDSystem::instance();
if(*(void **)p != myVtable){
printf("Sorry, cannot unload uControl!\n");
return 1;
}
*(void **)p = oldVtable;
oldVtable = NULL;
}
return 0;
}
static unsigned addFlags = 0;
static unsigned cachedKeyboard = 0;
static unsigned cachedFlavor = 0;
#ifdef TWERQ
static bool willTranslate = FALSE;
static bool hasTranslated = FALSE;
static unsigned int trans_length = 60;
/**
* Maps the keys (really a hash where the index serves as the key set)
**/
static int trans[] = {41,37,40,38,5,4,44,47,43,46,NO_TRANS,45,35,31,34,32,17,
16,29,25,28,26,23,22,NO_TRANS,19,21,NO_TRANS,20,18,
NO_TRANS,13,15,NO_TRANS,14,12,NO_TRANS,1,3,NO_TRANS,2,0,
NO_TRANS,8,6,11,9,7,51,NO_TRANS,NO_TRANS,48,NO_TRANS,
NO_TRANS,NO_TRANS,NO_TRANS,NO_TRANS,NO_TRANS,NO_TRANS,
36};
#endif
/**
* The capslock sequence of events looks like this from IO system:
*
* hid event type 12 flags 0x10000 key 57 kbdType 195
*
* special event type 11 flags 0x10000 key 127 flavor 6
*
*
* special event type 11 flags 0x10000 key 127 flavor 6
*
* hid event type 12 flags 0x0 key 57 kbdType 195
*
* We want to make it look like this:
*
*
* hid event type 12 flags 0x40000 key 59 kbdType 195
*
* hid event type 12 flags 0x0 key 59 kbdType 195
**/
void ODHIDHack::keyboardEvent(unsigned eventType,
/* flags */ unsigned flags,
/* keyCode */ unsigned key,
/* charCode */ unsigned charCode,
/* charSet */ unsigned charSet,
/* originalCharCode */ unsigned origCharCode,
/* originalCharSet */ unsigned origCharSet,
/* keyboardType */ unsigned keyboardType,
/* repeat */ bool repeat,
/* atTime */ AbsoluteTime ts)
{
#ifdef OD_DEBUG
printf("caught hid event type %d flags 0x%x key %d kbdType %d\n", eventType,
flags, key, keyboardType);
#endif
/* has the capslock key has been pressed? */
if (eventType == KEY_MOD && key == CAPS_KEY) {
key = CTRL_KEY;
/* flavor 6 is the kind the titanium comes with
* flavor 4 seems to be the type for USB keyboards
* keyboardType 195 seems to be the TiBooks internal keyboard
* (cachedFlavor will not be set correctly until keyboardSpecialEvent
* is called) */
if (cachedFlavor == 6 || keyboardType == 195) {
/* make it look like the control key has been pressed instead */
if (flags & CAPS_FLAG) {
/* capslock on */
addFlags |= CTRL_FLAG;
} else if (addFlags & CTRL_FLAG) {
/* capslock off (not the same as releasing capslock, mind you) */
addFlags ^= CTRL_FLAG;
}
}
}
#ifdef ENTER_NO_MORE
/* */
if ((eventType == KEY_DOWN || eventType == KEY_UP) && key == ENTER_KEY) {
if (eventType == KEY_DOWN) {
addFlags |= CMD_FLAG;
} else if (addFlags & CMD_FLAG) {
/* remove command flag if it's there */
addFlags ^= CMD_FLAG;
}
eventType = KEY_MOD;
key = CMD_KEY;
}
/* */
#endif
/* wipe out capslock entirely */
if (flags & CAPS_FLAG) {
flags ^= CAPS_FLAG;
}
flags |= addFlags;
#ifdef TWERQ
/* is space bar being held down to swap the map? */
if (key == SPACE_KEY && eventType == KEY_DOWN) {
willTranslate = TRUE;
return; /* don't send the space event yet */
/* swap map back */
} else if (key == SPACE_KEY && eventType == KEY_UP) {
if (!hasTranslated) {
/* send the key as down now */
IOHIDSystem::keyboardEvent(KEY_DOWN, flags, key, charCode, charSet,
origCharCode, origCharSet, keyboardType,
repeat, ts);
}
willTranslate = FALSE;
hasTranslated = FALSE;
}
if (willTranslate && key < trans_length && trans[key] != NO_TRANS) {
/* special handling for ctrl to return mapping */
if (key == CTRL_KEY && eventType == KEY_MOD) {
eventType = ((flags & CTRL_FLAG) != 0 ? KEY_DOWN : KEY_UP);
}
key = trans[key];
if (eventType == KEY_DOWN)
hasTranslated = TRUE;
}
#endif
IOHIDSystem::keyboardEvent(eventType, flags, key, charCode, charSet,
origCharCode, origCharSet, keyboardType,
repeat, ts);
cachedKeyboard = keyboardType; /* store keyboard type */
#ifdef OD_DEBUG
printf("sent hid event type %d flags 0x%x key %d kbdType %d\n", eventType,
flags, key, keyboardType);
#endif
}
void ODHIDHack::keyboardSpecialEvent( unsigned eventType,
/* flags */ unsigned flags,
/* keyCode */ unsigned key,
/* specialty */ unsigned flavor,
/* guid */ UInt64 guid,
/* repeat */ bool repeat,
/* atTime */ AbsoluteTime ts)
{
#ifdef OD_DEBUG
printf("special event type %d flags 0x%x key %d flavor %d\n", eventType,
flags, key, flavor);
#endif
cachedFlavor = flavor;
if (!repeat && ((key == 127 && flavor == 6)
|| (key == CAPS_KEY && flavor == 4))) {
/* the following constants have been found by running with OD_DEBUG defined: */
/* try and catch the special capslock key event */
if (eventType == KEY_UP && key == 127 && flavor == 6) {
/* eventType doesn't change to corresponding key state like flavor 4 */
/* change the addFlag state to the opposite of whatever it is currently */
if (addFlags & CTRL_FLAG) {
addFlags ^= CTRL_FLAG;
} else {
addFlags |= CTRL_FLAG;
}
} else if (key == CAPS_KEY && flavor == 4) {
if (eventType == KEY_DOWN) {
// add CTRL_FLAG
addFlags |= CTRL_FLAG;
} else if (eventType == KEY_UP) {
// remove CTRL_FLAG
if (addFlags & CTRL_FLAG)
addFlags ^= CTRL_FLAG;
}
}
/* wipe out capslock entirely */
if (flags & CAPS_FLAG) {
flags ^= CAPS_FLAG;
}
flags |= addFlags;
#ifdef TWERQ
/* send the control key released event, back through our method
* (so translation works correctly) */
keyboardEvent(KEY_MOD, flags, CTRL_KEY, 0, 0, 0, 0, cachedKeyboard, FALSE,
ts);
#else
IOHIDSystem::keyboardEvent(KEY_MOD, flags, CTRL_KEY, 0, 0, 0, 0,
cachedKeyboard, FALSE, ts);
#endif
}else{
IOHIDSystem::keyboardSpecialEvent(eventType, flags, key, flavor, guid,
repeat, ts);
}
}
uControl/oldReadme.rtf 0100644 0000765 0000024 00000017520 07435005555 014273 0 ustar shane staff {\rtf1\mac\ansicpg10000\cocoartf100
{\fonttbl\f0\fswiss\fcharset77 Helvetica;\f1\fswiss\fcharset77 Helvetica-Bold;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww10000\viewh12840\viewkind0
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f0\fs20 \cf0 For more information about uControl please visit http://www.gnufoo.org/macosx/ucontrol.html
\fs24 \
\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f1\b\fs40 \cf0 Welcome to uControl!
\fs20 \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f0\b0\fs24 \cf0 \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f1\b\fs28 \cf0 What is it?
\f0\b0\fs24 uControl maps your control key to it's rightfully intended place on your laptops keyboard; the place thats currently occupied by the oft-unused caps lock key. No more finger acrobatics are required for using control-intensive Unix applications. Caps lock functionality is still available by pressing the Apple modifier key in conjunction with the caps lock key.\
\
Bugs wise there still does seem to be some cases where uControl gets confused. I've noticed it consistently when my machine comes out of sleep and capslock is lit. I'm not sure what happens to the system and how my code is involved in that exactly, but I'm sure there are other cases. If you can consistently reproduce any of these cases, definitely shoot me an email and it might lead to a better fix. And hey if this utility just makes your life easier, by all means send me an email. It makes my day.\
\
For you touch typists, be sure to take a look at uControl's cousin Twerq. Twerq does the same thing as uControl, but with a little twist. The space bar acts as a shift when held and mirrors the keys. What good is that for? you might ask. It means one hand now has access to all the keys from home row. (Hey what are you doing with that other hand? [shakes head] Keep your mind out of the gutter folks. ;) For anyone with a disability this might be especially useful. For me, it means I don't have to bring back my mouse hand if I don't need to do any extended typing. Supposedly the first keyboard used this kind of corded technique so one hand would be free to use the exotic mouse device. There's a company that sells these sorts of keyboards (http://www.halfkeyboard.com). \
\
I've been waiting for something like this to come along ever since I got my first Terminal app running on my Titanium. It was inspired and modified from a piece of software developed by Objective Development called iJect (http://www.obdev.at/products/iject/). Unfortunately, you'll have to choose between uControl and iJect, since they're mutually incompatible at this time. Many thanks to them and especially Christian Starkjohann, not only for providing such wonderful support for Mac OS X, but for doing so with a free license where possible. :) You guys rock!\
\
\f1\b\fs28 Update:
\fs40
\f0\b0\fs24 Well the new version of the kernel for 10.1 did indeed break uControl. Yes, the name has been changed. It seems there was another utility out there named iControl. They asked nicely and they had a right to it. \
\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f1\b\fs32 \cf0 Installing uControl on Mac OS X
\f0\b0\fs24 \
\fs8 \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs24 \cf0 To install uControl, please perform the following steps:\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs8 \cf0 \
\pard\tx360\tx2880\tx4320\tx5760\tx7200\li360\fi-360\ql\qnatural
\fs24 \cf0 1. Remove any older versions of uControl ( and iJect (see below for how to do that). \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs8 \cf0 \
\pard\tx360\tx2880\tx4320\tx5760\tx7200\li360\fi-360\ql\qnatural
\fs24 \cf0 2. Open a Finder window and go to the "Library" folder directly on your Mac OS X startup volume. (There are several folders named "Library". We mean the one in the root of the startup volume,
\f1\b NOT
\f0\b0 in the System folder!)\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs8 \cf0 \
\pard\tx360\tx2880\tx4320\tx5760\tx7200\li360\fi-360\ql\qnatural
\fs24 \cf0 3a. If there is a folder named "StartupItems", drop the "uControl" folder into it. The uControl folder is in the "StartupItems" folder in the distributed disk image.\
3b. If there is no such folder, drop the whole folder "StartupItems" from the distributed disk image directly into the "Library" folder.\
You should have created a directory hierarchy like this in any case:\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs8 \cf0 \
\pard\tx1140\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs24 \cf0 /Library/StartupItems/uControl\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs8 \cf0 \
\pard\tx360\tx2880\tx4320\tx5760\tx7200\li360\fi-360\ql\qnatural
\fs24 \cf0 4. Restart the computer\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\cf0 \
After rebooting, your forlorn caps lock key will suddenly acquire a usefulness it should have rightfully had in the first place. :) \
\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f1\b \cf0 Note:
\f0\b0 You need Administrator rights to install startup items, but you do not need to be the Unix super user "root". The user account which is created during installation of the operating system has administrator rights.\
\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f1\b\fs32 \cf0 Removing uControl (formerly known as iControl)
\f0\b0\fs24 \
\fs8 \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs24 \cf0 To remove uControl from your machine:\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs8 \cf0 \
\pard\tx360\tx2880\tx4320\tx5760\tx7200\li360\fi-360\ql\qnatural
\fs24 \cf0 1. Delete the uControl and/or the iControl folder in /Library/StartupItems on your Mac OS X startup volume.\
\pard\tx360\tx2880\tx4320\tx5760\tx7200\li360\fi-360\ql\qnatural
\fs8 \cf0 \
\pard\tx360\tx2880\tx4320\tx5760\tx7200\li360\fi-360\ql\qnatural
\fs24 \cf0 2. Restart your computer.\
\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f1\b\fs32 \cf0 Removing iJect
\f0\b0\fs24 \
\fs8 \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs24 \cf0 To remove iJect from your machine:\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs8 \cf0 \
\pard\tx360\tx2880\tx4320\tx5760\tx7200\li360\fi-360\ql\qnatural
\fs24 \cf0 1. Delete the iJect folder in /Library/StartupItems on your Mac OS X startup volume.\
\pard\tx360\tx2880\tx4320\tx5760\tx7200\li360\fi-360\ql\qnatural
\fs8 \cf0 \
\pard\tx360\tx2880\tx4320\tx5760\tx7200\li360\fi-360\ql\qnatural
\fs24 \cf0 2. Restart your computer.\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\cf0 \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f1\b\fs32 \cf0 Known Bugs\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs20 \cf0 \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f0\b0\fs8 \cf0 \
\pard\tx360\tx2880\tx4320\tx5760\tx7200\li360\fi-360\ql\qnatural
\fs24 \cf0 1. Holding the Apple modifier key doesn't restore caps lock functionality, if the caps lock key is currently lit. I am well aware of this issue, the workaround for the moment is to simply press the caps lock key again while holding the Apple modifier key. \
\
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f1\b\fs32 \cf0 Troubleshooting
\f0\b0\fs24 \
\fs8 \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs24 \cf0 uControl has been developed for Mac OS X 10.0. It is known to run on Mac OS X 10.0.0 up to 10.0.4 and probably runs on later versions, too. However, since it links to internal kernel structures, newer versions of the kernel may break uControl. \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs8 \cf0 \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\fs24 \cf0 If your machine does not boot after installing uControl, hold the option (alt) key during booting and boot to Mac OS 9. You can remove uControl from Mac OS 9.\
\
NO WARRANTY EXPRESSED OR IMPLIED!!\
} uControl/perlish/ 0040755 0000765 0000024 00000000000 07435005603 013320 5 ustar shane staff uControl/perlish/buildarray 0100755 0000765 0000024 00000001761 07435005557 015416 0 ustar shane staff #!/usr/bin/perl
%codes = readHash('codes');
%trans = readHash('trans');
foreach $key (keys %trans) {
$twist{$codes{$key}}=$codes{$trans{$key}};
}
%twist = backAndForth(%twist);
$max=max(keys %twist);
foreach(0..$max) {
# special condition for return key 36
$twist{$_} = 'NO_TRANS' if (!exists $twist{$_} || $_ == 36);
print $twist{$_} . ',';
}
print "\ncount = ", scalar(keys %twist);
print "\n";
#printHash(%twist);
sub max {
$max = 0;
foreach (@_) {
if ($max < $_) {
$max = $_;
}
}
return $max;
}
sub backAndForth {
my %hash = @_;
foreach(keys %hash) {
$hash{$hash{$_}} = $_;
}
return %hash;
}
sub printHash {
my %codes = @_;
foreach(keys %codes) {
print $_ . '=' . $codes{$_}, "\n";
}
}
sub readHash($) {
my %hash;
open(IN, shift) || die "broke $!\n";
while() {
next if (/^\s*#/);
if (/(\S+)=(\S+)/) {
$hash{$1} = $2;
}
}
return %hash;
}
uControl/perlish/codes 0100644 0000765 0000024 00000000523 07435005557 014345 0 ustar shane staff a=0
b=11
c=8
d=2
e=14
f=3
g=5
h=4
i=34
j=38
k=40
l=37
m=46
n=45
o=31
p=35
q=12
r=15
s=1
t=17
u=32
v=9
w=13
x=7
y=16
z=6
#
#=36 (return)
,=43
.=47
;=41
'=39
/=44
[=33
]=30
1=18
2=19
3=20
4=21
5=23
6=22
7=26
8=28
9=25
0=29
-=27
==24
#=51 (delete)
#tab
\t=48
#delete
\d=51
\=42
`=50
#control
^=59
#return
\r=36
#=2 (CRTL-d)
# =49 (space bar)
uControl/perlish/CVS/ 0040755 0000765 0000024 00000000000 07435005603 013753 5 ustar shane staff uControl/perlish/CVS/Entries 0100644 0000765 0000024 00000000257 07435005603 015310 0 ustar shane staff /buildarray/1.1.1.1/Wed Feb 20 20:47:43 2002//
/codes/1.1.1.1/Wed Feb 20 20:47:43 2002//
/keyme/1.1.1.1/Wed Feb 20 20:47:43 2002//
/trans/1.1.1.1/Wed Feb 20 20:47:43 2002//
D
uControl/perlish/CVS/Repository 0100644 0000765 0000024 00000000037 07435005603 016052 0 ustar shane staff /home/cvsroot/uControl/perlish
uControl/perlish/CVS/Root 0100644 0000765 0000024 00000000016 07435005603 014613 0 ustar shane staff /home/cvsroot
uControl/perlish/keyme 0100755 0000765 0000024 00000000664 07435005557 014373 0 ustar shane staff #!/usr/bin/perl
$log = '/private/var/log/system.log';
while(1) {
$pressed = <>;
chomp($pressed);
sleep 1;
@lines = `tail -n 4 <( grep -v ' key 36 ' $log)`;
%hash = ();
foreach (@lines) {
/key (\d+) /;
$hash{$1}++;
}
$max = 0;
foreach (keys %hash) {
if ($hash{$_} > $max) {
$max = $hash{$_};
$code = $_;
}
}
print "$pressed=$code\n";
}
uControl/perlish/trans 0100644 0000765 0000024 00000000137 07435005557 014400 0 ustar shane staff q=p
w=o
e=i
r=u
t=y
a=;
s=l
d=k
f=j
g=h
z=/
x=.
c=,
v=m
b=n
1=0
2=9
3=8
4=7
5=6
\t=\d
\r=^
'=`
uControl/resources/ 0040755 0000765 0000024 00000000000 07435005603 013664 5 ustar shane staff uControl/resources/CVS/ 0040755 0000765 0000024 00000000000 07435005603 014317 5 ustar shane staff uControl/resources/CVS/Entries 0100644 0000765 0000024 00000000141 07435005603 015644 0 ustar shane staff /License.rtf/1.1.1.1/Wed Feb 20 20:47:43 2002//
/ReadMe.rtf/1.1.1.1/Wed Feb 20 20:47:43 2002//
D
uControl/resources/CVS/Repository 0100644 0000765 0000024 00000000041 07435005603 016411 0 ustar shane staff /home/cvsroot/uControl/resources
uControl/resources/CVS/Root 0100644 0000765 0000024 00000000016 07435005603 015157 0 ustar shane staff /home/cvsroot
uControl/resources/License.rtf 0100644 0000765 0000024 00000040600 07435005557 015770 0 ustar shane staff {\rtf1\mac\ansicpg10000\cocoartf100
{\fonttbl\f0\fnil\fcharset77 LucidaGrande-Bold;\f1\fnil\fcharset77 LucidaGrande;\f2\fnil\fcharset77 AmericanTypewriter-Bold;
\f3\fnil\fcharset77 AmericanTypewriter;}
{\colortbl;\red255\green255\blue255;}
\vieww9000\viewh9000\viewkind0
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f0\b\fs24 \cf0 uControl
\f1\b0 , along with its source code, documentation, and supplemental files are Copyright (c) 2002 Shane Celis.
\f0\b uControl
\f1\b0 is distributed under the GPL. If you did not receive source code along with this distribution, please write to shane (at) terraspring.com to obtain a copy.\
\
Visit uControl on the web at:
\f0\b http://www.gnufoo.org/macosx/ucontrol.html
\f1\b0 \
\
\
\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\li100\qc
\f2\b\fs26 \cf0 GNU GENERAL PUBLIC LICENSE\
Version 2, June 1991\
\f3\b0 \
Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA\
\
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\li100\ql\qnatural
\cf0 \
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\li100\qc
\f2\b \cf0 Preamble\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\li100\ql\qnatural
\f3\b0 \cf0 \
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too.\
\
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it\
in new free programs; and that you know you can do these things.\
\
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.\
\
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\
\
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.\
\
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original\
authors' reputations.\
\
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.\
\
The precise terms and conditions for copying, distribution and modification follow.\
\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\li100\qc
\f2\b \cf0 GNU GENERAL PUBLIC LICENSE\
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\li100\ql\qnatural
\f3\b0 \cf0 \
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".\
\
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.\
\
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.\
\
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.\
\
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:\
\
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.\
\
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.\
\
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)\
\
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.\
\
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.\
\
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.\
\
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:\
\
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,\
\
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,\
\
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)\
\
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.\
\
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.\
\
4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.\
\
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.\
\
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.\
\
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.\
\
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.\
\
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.\
\
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.\
\
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.\
\
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\
\
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.\
\
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.\
\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\li100\qc
\f2\b \cf0 NO WARRANTY\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\li100\ql\qnatural
\f3\b0 \cf0 \
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\
\
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\
\
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\li100\qc
\f2\b \cf0 END OF TERMS AND CONDITIONS} uControl/resources/ReadMe.rtf 0100644 0000765 0000024 00000017247 07435005557 015556 0 ustar shane staff {\rtf1\mac\ansicpg10000\cocoartf100
{\fonttbl\f0\fswiss\fcharset77 Helvetica;\f1\fnil\fcharset77 LucidaGrande-Bold;\f2\fnil\fcharset77 LucidaGrande;
}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww9000\viewh9000\viewkind0
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f0\fs22 \cf0 For more information about uControl please visit http://www.gnufoo.org/macosx/ucontrol.html\
\fs24 \
\pard\tx0\tx1120\tx2240\tx3360\tx4480\tx5600\tx6720\tx7840\tx8960\tx10080\tx11200\tx12320\tx13440\tx14560\tx15680\tx16800\tx17920\tx19040\tx20160\tx21280\tx22400\tx23520\tx24640\tx25760\tx26880\tx28000\tx29120\tx30240\tx31360\tx32480\tx33600\tx34720\qc
\f1\b\fs42 \cf0 MacOS X Stuff\
\pard\tx0\tx1120\tx2240\tx3360\tx4480\tx5600\tx6720\tx7840\tx8960\tx10080\tx11200\tx12320\tx13440\tx14560\tx15680\tx16800\tx17920\tx19040\tx20160\tx21280\tx22400\tx23520\tx24640\tx25760\tx26880\tx28000\tx29120\tx30240\tx31360\tx32480\tx33600\tx34720\ql\qnatural
\f2\b0\fs28 \cf0 \
\pard\tx0\tx1120\tx2240\tx3360\tx4480\tx5600\tx6720\tx7840\tx8960\tx10080\tx11200\tx12320\tx13440\tx14560\tx15680\tx16800\tx17920\tx19040\tx20160\tx21280\tx22400\tx23520\tx24640\tx25760\tx26880\tx28000\tx29120\tx30240\tx31360\tx32480\tx33600\tx34720\ql\qnatural
\f0\fs26 \cf0 \
\pard\tx0\tx1120\tx2240\tx3360\tx4480\tx5600\tx6720\tx7840\tx8960\tx10080\tx11200\tx12320\tx13440\tx14560\tx15680\tx16800\tx17920\tx19040\tx20160\tx21280\tx22400\tx23520\tx24640\tx25760\tx26880\tx28000\tx29120\tx30240\tx31360\tx32480\tx33600\tx34720\ql\qnatural
\f1\b\fs34 \cf0 Take Control!\
\pard\tx0\tx1120\tx2240\tx3360\tx4480\tx5600\tx6720\tx7840\tx8960\tx10080\tx11200\tx12320\tx13440\tx14560\tx15680\tx16800\tx17920\tx19040\tx20160\tx21280\tx22400\tx23520\tx24640\tx25760\tx26880\tx28000\tx29120\tx30240\tx31360\tx32480\tx33600\tx34720\ql\qnatural
\f2\b0\fs28 \cf0 \
Tired of hitting all the wrong modifier keys on your laptop to get that simple control sequence? Are you forced to drag a keyboard around with you that has the control key in the right place? The place that Apple mistakenly put the caps lock key. Take control back!\
\
uControl maps your control key to it's rightfully intended place on your laptops keyboard; the place thats currently occupied by the oft-unused caps lock key. No more finger acrobatics are required for using control-intensive Unix applications. Caps lock functionality is still available by pressing the Apple modifier key in conjunction with the caps lock key.\
\
uControl also remaps the enter key positioned right next to the spacebar to a command key, due to many user requests. Upon the next iteration of development, I plan to include a user definable remapping of special keys. Currently, the only way to acquire different remaps is by recompiling. :(\
\pard\tx0\tx1120\tx2240\tx3360\tx4480\tx5600\tx6720\tx7840\tx8960\tx10080\tx11200\tx12320\tx13440\tx14560\tx15680\tx16800\tx17920\tx19040\tx20160\tx21280\tx22400\tx23520\tx24640\tx25760\tx26880\tx28000\tx29120\tx30240\tx31360\tx32480\tx33600\tx34720\ql\qnatural
\f0 \cf0 \
\pard\tx0\tx1120\tx2240\tx3360\tx4480\tx5600\tx6720\tx7840\tx8960\tx10080\tx11200\tx12320\tx13440\tx14560\tx15680\tx16800\tx17920\tx19040\tx20160\tx21280\tx22400\tx23520\tx24640\tx25760\tx26880\tx28000\tx29120\tx30240\tx31360\tx32480\tx33600\tx34720\ql\qnatural
\f1\b\fs34 \cf0 Known Problems\
\pard\tx0\tx1120\tx2240\tx3360\tx4480\tx5600\tx6720\tx7840\tx8960\tx10080\tx11200\tx12320\tx13440\tx14560\tx15680\tx16800\tx17920\tx19040\tx20160\tx21280\tx22400\tx23520\tx24640\tx25760\tx26880\tx28000\tx29120\tx30240\tx31360\tx32480\tx33600\tx34720\ql\qnatural
\f2\b0\fs28 \cf0 \
I know this utility works on TiBooks, but unfortunately that's the only machine I have to test it on. I hope some gracious soul will be kind enough to lend some time to provide me with a patch for whatever machine they're using if it doesn't work properly.\
\
\'a5 Some USB keyboards or other machines in general work a little differently and the capslock is remapped to control but is still sticky. (This has hopefully been
\f1\b fixed
\f2\b0 for most machines.)\
\'a5 If capslock is lit and you put the machine to sleep, when it comes out control key will be locked as if it were being pressed down. (Work around is simply press control key.)\
\
If you can consistently reproduce any of other cases that will invariably pop up, definitely shoot me an email and it might lead to a better fix. And hey, if this utility just makes your life easier, by all means send me an email. It makes my day.\
\
-shane (at) terraspring.com\
\
uControl software is licensed under the GPL, and was modified from sources available at \ul Objective Development\
\ulnone \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f1\b\fs34 \cf0 Installing uControl on Mac OS X\
\
\
\
Troubleshooting
\f0\b0\fs24 \
\fs8 \
\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
\f2\fs28 \cf0 uControl has been developed for Mac OS X 10.0. It is known to run on Mac OS X 10.0.0 up to 10.0.4 and probably runs on later versions, too. However, since it links to internal kernel structures, newer versions of the kernel may break uControl. \
\
If your machine does not boot after installing uControl, hold the option (alt) key during booting and boot to Mac OS 9. You can remove uControl from Mac OS 9.
\f0\fs24 \
\
\f2\fs28 NO WARRANTY EXPRESSED OR IMPLIED!!\
\
\fs26 I've been waiting for something like this to come along ever since I got my first Terminal app running on my Titanium. It was inspired and modified from a piece of software developed by Objective Development called iJect (http://www.obdev.at/products/iject/). Unfortunately, you'll have to choose between uControl and iJect, since they're mutually incompatible at this time. Many thanks to them and especially Christian Starkjohann, not only for providing such wonderful support for Mac OS X, but for doing so with a free license where possible. :) You guys rock!\
\pard\tx0\tx1120\tx2240\tx3360\tx4480\tx5600\tx6720\tx7840\tx8960\tx10080\tx11200\tx12320\tx13440\tx14560\tx15680\tx16800\tx17920\tx19040\tx20160\tx21280\tx22400\tx23520\tx24640\tx25760\tx26880\tx28000\tx29120\tx30240\tx31360\tx32480\tx33600\tx34720\ql\qnatural
\fs28 \cf0 \
--\
\pard\tx0\tx1120\tx2240\tx3360\tx4480\tx5600\tx6720\tx7840\tx8960\tx10080\tx11200\tx12320\tx13440\tx14560\tx15680\tx16800\tx17920\tx19040\tx20160\tx21280\tx22400\tx23520\tx24640\tx25760\tx26880\tx28000\tx29120\tx30240\tx31360\tx32480\tx33600\tx34720\ql\qnatural
\f0 \cf0 \
\pard\tx0\tx1120\tx2240\tx3360\tx4480\tx5600\tx6720\tx7840\tx8960\tx10080\tx11200\tx12320\tx13440\tx14560\tx15680\tx16800\tx17920\tx19040\tx20160\tx21280\tx22400\tx23520\tx24640\tx25760\tx26880\tx28000\tx29120\tx30240\tx31360\tx32480\tx33600\tx34720\ql\qnatural
\f1\b\fs34 \cf0 Twerq!\
\pard\tx0\tx1120\tx2240\tx3360\tx4480\tx5600\tx6720\tx7840\tx8960\tx10080\tx11200\tx12320\tx13440\tx14560\tx15680\tx16800\tx17920\tx19040\tx20160\tx21280\tx22400\tx23520\tx24640\tx25760\tx26880\tx28000\tx29120\tx30240\tx31360\tx32480\tx33600\tx34720\ql\qnatural
\f2\b0\fs28 \cf0 \
For you touch typists, be sure to take a look at uControl's cousin \ul Twerq\ulnone . Twerq does the same thing as uControl (same source actually), but with a little twist. The space bar acts as a shift when held and mirrors the keys. What good is that for? You might ask. Means one hand now has access to all the keys from home row. (Hey what are you doing with that other hand? [shakes head] Keep your mind out of the gutter folks. ;) For anyone with a disability this might be especially useful. For me, it means I don't have to bring back my mouse hand if I don't need to do any extended typing. Supposedly the first keyboard used this kind of corded technique so one hand would be free to use the exotic mouse device. There's a \ul company\ulnone that sells these sorts of keyboards.\
} uControl/ucenv 0100644 0000765 0000024 00000001665 07435005555 012730 0 ustar shane staff # env for uControl development
uconhome=/home/shane/Projects/uControlSource
#kext=/System/Library/Extensions/uControl.kext
alias load='sudo /Library/StartupItems/uControl/uControl start'
alias unload='sudo /Library/StartupItems/uControl/uControl stop'
alias rmucon='sudo rm -rf /System/Library/Extensions/uControl.kext'
alias cpucon='pushd $uconhome && sudo cp -R build/uControl.kext /System/Library/Extensions && cp -R build/uControl.kext $uconhome/dstroot/System/Library/Extensions'
alias ucon='ls /Library/StartupItems/uControl'
alias log='tail -f /private/var/log/system.log'
alias logsent='tail -f /private/var/log/system.log | grep sent'
alias install='pbxbuild && unload && rmucon && cpucon && load'
alias mkdist='mkdir -p dstroot/System/Library/Extensions && mkdir -p dstroot/Library/StartupItems'
alias cpdist='cp -R build/uControl.kext $uconhome/dstroot/System/Library/Extensions && cp -R uControl $uconhome/dstroot/Library/StartupItems'
uControl/uControl/ 0040755 0000765 0000024 00000000000 07435005603 013457 5 ustar shane staff uControl/uControl/CVS/ 0040755 0000765 0000024 00000000000 07435005603 014112 5 ustar shane staff uControl/uControl/CVS/Entries 0100644 0000765 0000024 00000000153 07435005603 015442 0 ustar shane staff /StartupParameters.plist/1.1.1.1/Wed Feb 20 20:47:43 2002//
/uControl/1.1.1.1/Wed Feb 20 20:47:43 2002//
D
uControl/uControl/CVS/Repository 0100644 0000765 0000024 00000000040 07435005603 016203 0 ustar shane staff /home/cvsroot/uControl/uControl
uControl/uControl/CVS/Root 0100644 0000765 0000024 00000000016 07435005603 014752 0 ustar shane staff /home/cvsroot
uControl/uControl/StartupParameters.plist 0100644 0000765 0000024 00000001040 07435005557 020222 0 ustar shane staff /* Name: StartupParameters.plist
* Project: uControl
* Author: Christian Starkjohann (modified by Shane Celis)
* Creation Date: 2001-07-13
* Tabsize: 4
* This Revision: $Id: StartupParameters.plist,v 1.1.1.1 2002/02/20 20:47:43 shane Exp $
*/
{
Description = "uControl";
Provides = ("uControl");
Requires = ("Disks"); /* depend on something so that we don't come too early */
OrderPreference = "None";
Messages = {
start = "Starting uControl";
stop = "Stopping uControl";
};
}
uControl/uControl/uControl 0100755 0000765 0000024 00000000536 07435005557 015223 0 ustar shane staff #!/bin/sh
what="$1"
kextload=/sbin/kextload
kextunload=/sbin/kextunload
kext=/System/Library/Extensions/uControl.kext
if [ -z "$what" ]; then
what=start
fi
case "$what" in
start)
echo "Starting uControl"
$kextload $kext
;;
stop)
echo "Shutting down uControl"
$kextunload $kext
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
uControl/uControl Package.icns 0100644 0000765 0000024 00000121260 07435005555 015656 0 ustar shane staff icns ЂАics# Hџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџics8 џџџџџџџџџџџџџџџџџџџџџџ/YррџџџџџџџY
^џџџџ4
џџ
.
Ќџр45
5^џ:943W^d35:џџ99]І|dќd9:Гџџў:љћњ]]ћ3:џџџГ9љћ]]љљћ3dџџџо^dГЌЌЌўdоџџџџп9@VVVљ:dџџџџџп^929^dрџџџџџџрedddрџџџџџџџџџџГџџџџџџџџџџџџџџџџџџџџџџџis32 d 9Ч Sсјњџўєь cлјWєэ№јљјуj :№їёщфчфиуєїіћK Ыптђыэяящгфѕ KЧвкмnloЮЫЛ NЭвхOwaSХЙ1 .КъY~rZsШЙn =ЩXІ_sТH E1u<%uC .sЗНА}P
%qЯркУi gL di0 +tИ GЙЬдъчЮЈV
9аЬЩTавХH " ПШУСЬЩЗСЭЩЏЊ4 ЋГЈЈЖЂАЎ_ )mtWgj]<n +qtnQ\GNLDy^ fPx`XjQ.^8 rRuXW+
N% UD&573>? ,j>PF;"
,^yЇ i]>-
';BA:! -0 (,&(,[A ]+HA.,,).'.0Lr8 E"9+1YY&1?9b
) 3&w r_J OU@b9WY]O/\6 RUzj2JM;BC@^= J~LoVSfN+|=$
hOsVS(o2 DD$340<, _=O6
LqЄ`H" '&!
ICN# р џ џџџџрџџј?џџўџџўџџўџџќџџјџџјџџџјџџџјџџј?џџјџџќџџќџџјџџ№џџ№џџ№џџ№џџ№џџ№џџР џ ?ј р р џ џџџџрџџј?џџўџџўџџўџџќџџјџџјџџџјџџџјџџј?џџјџџќџџќџџјџџ№џџ№џџ№џџ№џџ№џџ№џџР џ ?ј р icl8 џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџпX_рџџџџџџџџџџџџџџџџџџџџџџџџ^//џџџџџџџџџџџџџџџџџџпY
3џџџџџџџџџџџџ5
3џџџџџџџџ^
]ўџџџџџ
./
^рџџџџ^
///.//
3џџџџ
./
....
Ќџџџџџ^555
555
џџџџџ94555 ,іѕѕѕ555
9џџџџр^99945 dњWљљWWVљ3A,55559рџџџ:999993dЌRќќќќAe,5:::џџџџ:99999ћЌX|ћћћAћќм9:::џџџџў:99992ќЌћAћћћќ§@2:::џџџџџџ^993іќќќAћћќ§@,::::џџџџџџџ9іќќљљљ@]љVћћќ§@+::::Гџџџџџџр2іЌќљљ@^њљVћќў@,::::џџџџџџр+ЌЌћњ@]љљљљљќў@2:dрџџџџџџџр29§ўўdЌЌЌЌЌЌўўо9]рџџџџџџџџр]оўлЌЌЌЌЌЌ§ўўк]рџџџџџџџџр2@м@ќќќќќќќќйeedрџџџџџџџџџп29ііііііі2^ddddџџџџџџџџџџџр3292^ddddџџџџџџџџџџџџџ]2,їїјW^ddddпџџџџџџџџџџџџџџџоddddddddоџџџџџџџџџџџџџџџџџџџГddddddпџџџџџџџџџџџџџџџџџџџџџџпdddоџџџџџџџџџџџџџџџџџџџџџџџџџџрпџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџil32 Ь pЏ LоџпPX ^ЋшјјљўџўфыоZ 0~ЬљјљўџџћїјїёяФ= XјљћјіїјљњїѓєЊ :щщї
јѓьхлпђїјљњњћјїњ Џщїјї№щсо
кжзцїљњњјіїњќо :щїјѕэцпоршэє№щожжкыѕѓєѕїњќO ЁцтофѓњњѓээєњѕчбЯйюєѕїњ~ iЬиоьћіойхяёъсьљєдЯарѓїЛ ЉбвгйоьњЄxВЪчйгЯЯРЙ NТабвгдпћ@]eIJKLaБVfоЫТЛИ NТабвгдяюXAgy_]\qХgZKwхЦЙ F 'УбвгжњжWEPmjl[_Яzb[M,екЙ
ЊвгнјлTJRjhncЦvmb_Q+НеЙ sацюуMPxМbbU)КкЙ : kеюфFSqЧqeS'ИЯЙ Q \iїм5>`ЙqT&ЩШЙX naка+ !~D?EED;$$Nлc^
spъL"`?757<;6#*Ќep|
stsШЮxЛUSQNLQTPSЛeq /ru{ЪызучццусстщЩ kuzГечэѓ ящнИ| ^vw{ЄФЩвЪОЌ`( Mwxx|D
7vx_( "q|C
{_& Џ Ь gЃu 7uЩъъэъЭI 9
PНЬЬЯхъэъъцГ; -oЎаЬЯфэънааЫЌ) 3UдвЬЮсгЮЯабвФЇЃr "КЭеЭЬЩУНЗКЪЯабвдзНІЉ`
eЙОХжаЫЦРЛИ
ЗВГРажлиЮЛІЉЌ "ЙОМИСРЙМЯицпдСЖККССОПЗІЉЌ6 ZЊТрeoymb~еЭ ІЙПЗІЉV :oЊЯЃ[ГжтььхТgхЇЖІ ]stuЊЮ~>s)IЫІr +jrsttu6;qК|DDEG?(L3$Щ{e^ +jrsttuoR=}ЏZXWQ+TUE}^ # kstt}ЌN=NtigVM)^[TD!A^ A ]ttxвKAIddiS$SeYWH!:З^ >sАmйDFn;g
ZZL >Я^ 2oкPyh\K:З^ *
#>Х09[{AT
hK7Ё^N,
*%w'!"=:<<;2lr,(
,+mY60
32-j-05
,Ї+(OKIHFILI<G;8:;
+-6ЁMfйпоонммKЄ]<==< )-3M}ЁSxZ>>==5 $--3sЇВВДЊY??>=) -..HBAA@@??7
-.HBAA@?*
+HBA8 <, Џ Ь ! %9* +,,*9=mk- *,*9 -.7]vc &@SE.
,+>+,-./0Ep}X ee'@Q3,)#1)-./15GrL
Le%.R?,'!
1 1ATVEHx e%9;&bБ
F%7;9-%$?+ BLГzWak`XsК
$?C *P uNІШеппйГZzТ>b DTTU2sp0bo||}q=ЋT MSTTUVm'+'>1567;1>%$7= MSTTUVЁlF,0I@KIHEFG7b= NTTU_ЊK58HVYG?PQNA?= * DTU|vЯG=DWY[ELaVTF8Ќ= -TkжACk7dVWI<Ы= mз9Gg