mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
28 lines
622 B
Plaintext
28 lines
622 B
Plaintext
/*
|
|
* Author: Glowbal
|
|
*
|
|
*
|
|
* Arguments:
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
private ["_deviceID","_refreshRateRX","_deviceData"];
|
|
|
|
// by default, consider the device not having a receiver
|
|
_refreshRateRX = -1;
|
|
_deviceID = _this select 0;
|
|
_deviceData = [_deviceID] call FUNC(getDeviceData);
|
|
GVAR(currentOpenedDevice) = _deviceData;
|
|
if !(_deviceData isEqualTo []) then {
|
|
_refreshRateRX = D_GET_REFRESH_RATE_RX(_deviceData);
|
|
[D_GET_ENCRYPTION(_deviceData)] call FUNC(updateRegisteredEncryptionKeys);
|
|
};
|
|
|
|
[true,_refreshRateRX] call FUNC(updateAvailableDevicesPosition);
|