btcustomevent.h

来自「1、手持设备的机器人--服务器端; 2、通过蓝牙通讯;」· C头文件 代码 · 共 45 行

H
45
字号
#ifndef BTCUSTOMEVENT_
#define BTCUSTOMEVENT_

/*
 * Copyright (c) 2004-2005 Mobile Robotics
 * http://mobilerobotics.sf.net
 *
 * File: BtCustomEvent.h
 * Author: Johan Johanson
 * Date: February 26, 2005
 * Updated: February 26, 2005
 *
 * Description: A custom event struct used to notify application of a certain
 * 				event that requires application flow to halt
 *
*/

#include <PalmOS.h>

const UInt16 btCustomRadioStateEvent = 0;

struct BtCustomEvent
{
	// required event attributes
	eventsEnum eType;
	Boolean penDown;
	UInt8 tapCount;
	Int16 screenX;
	Int16 screenY;
	
	// event-specific data
	union
	{
		struct _GenericEventType generic;
		
		struct
		{
			UInt16 type;	// our event type
			UInt16 status;	// our event status code
		} eventData;
	
	} data;
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?