{ "header": "SDL_pen.h", "opaque_types": [], "typedefs": [ { "name": "SDL_PenID", "underlying_type": "Uint32" } ], "function_pointers": [], "c_type_aliases": [], "enums": [ { "name": "SDL_PenAxis", "values": [ { "name": "SDL_PEN_AXIS_PRESSURE", "comment": "Pen pressure. Unidirectional: 0 to 1.0" }, { "name": "SDL_PEN_AXIS_XTILT", "comment": "Pen horizontal tilt angle. Bidirectional: -90.0 to 90.0 (left-to-right)." }, { "name": "SDL_PEN_AXIS_YTILT", "comment": "Pen vertical tilt angle. Bidirectional: -90.0 to 90.0 (top-to-down)." }, { "name": "SDL_PEN_AXIS_DISTANCE", "comment": "Pen distance to drawing surface. Unidirectional: 0.0 to 1.0" }, { "name": "SDL_PEN_AXIS_ROTATION", "comment": "Pen barrel rotation. Bidirectional: -180 to 179.9 (clockwise, 0 is facing up, -180.0 is facing down)." }, { "name": "SDL_PEN_AXIS_SLIDER", "comment": "Pen finger wheel or slider (e.g., Airbrush Pen). Unidirectional: 0 to 1.0" }, { "name": "SDL_PEN_AXIS_TANGENTIAL_PRESSURE", "comment": "Pressure from squeezing the pen (\"barrel pressure\")." }, { "name": "SDL_PEN_AXIS_COUNT", "comment": "Total known pen axis types in this version of SDL. This number may grow in future releases!" } ] }, { "name": "SDL_PenDeviceType", "values": [ { "name": "SDL_PEN_DEVICE_TYPE_INVALID", "value": "-1", "comment": "Not a valid pen device." }, { "name": "SDL_PEN_DEVICE_TYPE_UNKNOWN", "comment": "Don't know specifics of this pen." }, { "name": "SDL_PEN_DEVICE_TYPE_DIRECT", "comment": "Pen touches display." }, { "name": "SDL_PEN_DEVICE_TYPE_INDIRECT", "comment": "Pen touches something that isn't the display." } ] } ], "structs": [], "unions": [], "flags": [ { "name": "SDL_PenInputFlags", "underlying_type": "Uint32", "values": [ { "name": "SDL_PEN_INPUT_DOWN", "value": "(1u << 0)", "comment": "pen is pressed down" }, { "name": "SDL_PEN_INPUT_BUTTON_1", "value": "(1u << 1)", "comment": "button 1 is pressed" }, { "name": "SDL_PEN_INPUT_BUTTON_2", "value": "(1u << 2)", "comment": "button 2 is pressed" }, { "name": "SDL_PEN_INPUT_BUTTON_3", "value": "(1u << 3)", "comment": "button 3 is pressed" }, { "name": "SDL_PEN_INPUT_BUTTON_4", "value": "(1u << 4)", "comment": "button 4 is pressed" }, { "name": "SDL_PEN_INPUT_BUTTON_5", "value": "(1u << 5)", "comment": "button 5 is pressed" }, { "name": "SDL_PEN_INPUT_ERASER_TIP", "value": "(1u << 30)", "comment": "eraser tip is used" }, { "name": "SDL_PEN_INPUT_IN_PROXIMITY", "value": "(1u << 31)", "comment": "pen is in proximity (since SDL 3.4.0)" } ] } ], "functions": [ { "name": "SDL_GetPenDeviceType", "return_type": "SDL_PenDeviceType", "parameters": [ { "name": "instance_id", "type": "SDL_PenID" } ] } ] }