[hal] Add SimInt and SimLong wrappers for int/long SimValue (#3066)

This commit is contained in:
Peter Johnson
2021-01-09 23:26:19 -08:00
committed by GitHub
parent e620bd4d3f
commit fb99910c23
5 changed files with 274 additions and 0 deletions

View File

@@ -153,6 +153,30 @@ Java_edu_wpi_first_hal_SimDeviceJNI_getSimValue
return hal::CreateHALValue(env, HAL_GetSimValue(handle));
}
/*
* Class: edu_wpi_first_hal_SimDeviceJNI
* Method: getSimValueInt
* Signature: (I)I
*/
JNIEXPORT jint JNICALL
Java_edu_wpi_first_hal_SimDeviceJNI_getSimValueInt
(JNIEnv*, jclass, jint handle)
{
return HAL_GetSimValueInt(handle);
}
/*
* Class: edu_wpi_first_hal_SimDeviceJNI
* Method: getSimValueLong
* Signature: (I)J
*/
JNIEXPORT jlong JNICALL
Java_edu_wpi_first_hal_SimDeviceJNI_getSimValueLong
(JNIEnv*, jclass, jint handle)
{
return HAL_GetSimValueLong(handle);
}
/*
* Class: edu_wpi_first_hal_SimDeviceJNI
* Method: getSimValueDouble