Installation guide
Programming AMX Controllers for a Kaleidescape System
Page 41
system-wide state; every player in the system will report the same system
readiness state.
An idle system will automatically exit idle mode when it receives
LEAVE_IDLE_MODE, LEAVE_STANDBY, or any other user interaction. Level 35 can
be used to provide feedback to the user that the Kaleidescape system is idle,
warming up, or ready to be used.
level_event[KPLAYER_Theater , 35]
{
stack_var integer touchpanelRef
stack_var integer kplayerRef
stack_var integer system_readiness_state
kplayerRef = get_last(Kplayer) //determine which virtual device
triggered the event
system_readiness_state = level.value
//step through each TP
for(touchpanelRef = 1; touchpanelRef <= length_array(KTouchPanels);
touchpanelRef++)
{
//if this TP is controlling this player
if(controlledKplayer[touchpanelRef] = kplayerRef)
{
switch(system_readiness_state)
{
case 0:{} // System ready
case 1:{} // System becoming ready
case 2:{} // System not ready
}
}
}
}
Screen masking
Level 11 on the virtual device reports masking information. There is a sample level
event in the Kaleidescape Multiple Panel Include file to handle this information. The
example below shows how to modify the level event for the masking system.
level_event[KPLAYER_Theater,11] //Screen masking data
{
switch (level.value)
{
case 0: { call 'MASK'('open') } //unknown image size
case 1: { call 'MASK'('1.33') } //image is 1.33 (4x3)
case 2: { call 'MASK'('1.66') } //image is 1.66