/// public メソッド ///--------------------------------------------------------------------------- /// 初期化 public bool Init(int trgDeviceIndex, int inputMax, int scrWidth, int scrHeight) { trgDevIdx = trgDeviceIndex; trgScrWidth = scrWidth; trgScrHeight = scrHeight; dataMax = inputMax; inputTouchData = new InputTouchData[inputMax]; if (inputTouchData == null) { return(false); } for (int i = 0; i < dataMax; i++) { inputTouchData[i] = new InputTouchData(); clearDataInfo(i); } isDataNum = 0; return(true); }
/// public メソッド ///--------------------------------------------------------------------------- /// 初期化 public bool Init( int trgDeviceIndex, int inputMax, int scrWidth, int scrHeight ) { trgDevIdx = trgDeviceIndex; trgScrWidth = scrWidth; trgScrHeight = scrHeight; dataMax = inputMax; inputTouchData = new InputTouchData[inputMax]; if( inputTouchData == null ){ return false; } for( int i=0; i<dataMax; i++ ){ inputTouchData[i] = new InputTouchData(); clearDataInfo( i ); } isDataNum = 0; return true; }