Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
ISpTestMain.h
/* |
File: ISpTestMain.h |
Contains: xxx put contents here xxx |
Version: xxx put version here xxx |
Copyright: © 1998 by Apple Computer, Inc., all rights reserved. |
File Ownership: |
DRI: xxx put dri here xxx |
Other Contact: xxx put other contact here xxx |
Technology: xxx put technology here xxx |
Writers: |
(BWS) Brent Schorsch |
(sjb) Steve Bollinger |
Change History (most recent first): |
<5> 7/17/98 BWS thrust button need was removed, so reduce need count |
<4> 6/18/98 sjb InputSprocket.h comes from <> place |
*/ |
/************************************************************************************* |
File: ISpTestMain.h |
Copyright © 1996, 1997, 1998 Apple Computer, Inc., All Rights Reserved |
You may incorporate this sample code into your applications without |
restriction, though the sample code has been provided "AS IS" and the |
responsibility for its operation is 100% yours. However, what you are |
not permitted to do is to redistribute the source as "DSC Sample Code" |
after having made changes. If you're going to re-distribute the source, |
we require that you make it clear in the source that the code was |
descended from Apple Sample Code, but that you've made changes. |
*************************************************************************************/ |
#pragma once |
#include <LApplication.h> |
#include <InputSprocket.h> |
class CPPStarterApp : public LApplication { |
public: |
CPPStarterApp(); // constructor registers all PPobs |
virtual ~CPPStarterApp(); // stub destructor |
// this overriding function performs application functions |
virtual Boolean ObeyCommand(CommandT inCommand, void* ioParam); |
// this overriding function returns the status of menu items |
virtual void FindCommandStatus(CommandT inCommand, |
Boolean &outEnabled, Boolean &outUsesMark, |
SInt16 &outMark, Str255 outName); |
virtual void EventResume (const EventRecord &inMacEvent); |
virtual void EventSuspend (const EventRecord &inMacEvent); |
enum |
{ |
cmd_Suspend = 1000, |
cmd_Resume = 1001, |
cmd_NextElement = 1002, |
cmd_PrevElement = 1003, |
cmd_AddElement = 1004, |
cmd_DeleteElement = 1005, |
cmd_UIStart = 1006, |
cmd_UIConfigure = 1007, |
cmd_UIStop = 1008, |
cmd_ActivateKeyboard = 1009, |
cmd_ActiveMouse = 1010, |
cmd_DeactiveBoth = 1011 |
}; |
enum |
{ |
kIconSuiteID_XThrust = 128, |
kIconSuiteID_YThrust, |
kIconSuiteID_ZThrust, |
kIconSuiteID_Look, |
kIconSuiteID_Fire, |
kIconSuiteID_Thrust, |
kIconSuiteID_Pause, |
kIconSuiteID_Start |
}; |
enum |
{ |
kNumNeeds = 7 |
}; |
ISpNeed mNeeds[kNumNeeds]; |
ISpElementReference mVirtualElements[kNumNeeds]; |
void InitNeeds(void); |
protected: |
virtual void StartUp(); // overriding startup functions |
}; |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14