IS BTC

From LFS Manual
Jump to navigationJump to search

Introduction

The BuTton Click packet is sent by LFS when a user clicks a button.

IS_BTC packet properties
Type Name Description
byte Size 8
byte Type ISP_BTC
byte ReqI ReqI as received in the IS_BTN
byte UCID connection that clicked the button (zero if local)
byte ClickID button identifier originally sent in IS_BTN
byte Inst used internally by InSim
byte CFlags button click flags - see below
byte Sp3

Packet Details

Size

The packet size is always 8 bytes.

Type

The packet type from the ISP_ enumeration, always ISP_BTC.

ReqI

This is the same value as set in the IS_BTN packet that created the button.

UCID

The connection that clicked the button (0 if local).

ClickID

The button's ID, as set in the IS_BTN packet that created the button.

Inst

Used internally by InSim.

CFlags

Contains information about the click event:

#define ISB_LMB			1		// left click
#define ISB_RMB			2		// right click
#define ISB_CTRL		4		// ctrl + click
#define ISB_SHIFT		8		// shift + click