The EventHandler override for InputProcess takes in an InputEvent. This has a property named "type" which is of type EGenericEvent
There is no documentation on EGenericEvent, so diving into the code, it is an enum defined inside of the InputEvent struct.
It appears that the child definitions of this struct are not accessible outside of this file, so you cannot get to the Enum directly. However enums convert natively to int so you can access it by number. So here is a guide to the input types if you ever need to check them.
From https://github.com/ZDoom/gzdoom/blob/ca ... nts.zs#L85
Code: Select all
enum EGenericEvent
{
Type_None, 0
Type_KeyDown, 1
Type_KeyUp, 2
Type_Mouse, 3
Type_GUI, 4 (unused, kept for completeness)
Type_DeviceChange 5
}
Code: Select all
console.printf(String.Format("type %d", e.Type));
Code: Select all
const EGenericEvent_Type_None = 0;
const EGenericEvent_Type_KeyDown = 1;
const EGenericEvent_Type_KeyUp = 2;
const EGenericEvent_Type_Mouse = 3;
const EGenericEvent_Type_GUI = 4;
const EGenericEvent_Type_DeviceChange = 5;