// ==============================================================
//                ORBITER MODULE: DeltaGlider
//                  Part of the ORBITER SDK
//          Copyright (C) 2001-2009 Martin Schweiger
//                   All rights reserved
//
// AirlockSwitch.h
// User interface for row of switches on overhead panel
// ==============================================================

#ifndef __AIRLOCKSWITCH_H
#define __AIRLOCKSWITCH_H

#include "Instrument.h"

// ==============================================================

class AirlockSwitch: public PanelElement {
public:
	AirlockSwitch (VESSEL3 *v);
	void AddMeshData2D (MESHHANDLE hMesh, DWORD grpidx);
	void Reset2D ();
	bool Redraw2D (SURFHANDLE surf);
	bool ProcessMouse2D (int event, int mx, int my);

private:
	int btnstate[3]; // 0=up, 1=down
};

#endif // !__SWITCHARRAY_H