At 7:58 AM +0100 10-01-00, Andrew Ball wrote:
>In migrating one of my apps to OS3.5, I've discovered that a couple of very
>useful unsupported API calls (yes, yes, I can hear the chorus already),
>have "disappeared", namely:

The old traps will still work.  (For the 3.5 release anyway.)

I don't know the 'right' way to do HwrPluggedIn now.  We have this thing
called a HAL (Hardware Abstraction Layer) and I know there's some stuff in
the HAL to support this, but I think the HAL routines are considered
private, so you shouldn't use them any more than you used to use
HwrPluggedIn.

I'm pretty sure there is a 'soft' character you can enqueue to change the
backlight.  vBacklightChr sounds right to me.  (I say 'soft' because it
does not correspond to a physical key, instead it's psuedo-generated on
some platforms by holding down the power switch for a while.  Note that
holding down the power switch for a while will not necessarily enqueu a
vBacklightChr on all devices, nor will all devices necessarily respond to
enqueing a vBacklightChr by toggling the backlight!)

So the 'right' answer here is don't use this routines, because you don't
need them.  Let the OS handle that stuff instead.  (yes, yes, I can hear
the chorus already)

                                --Bob


Reply via email to