Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_userdef.c
| Context not available. | |||||
| }; | }; | ||||
| #endif /* WITH_INPUT_NDOF */ | #endif /* WITH_INPUT_NDOF */ | ||||
| static const EnumPropertyItem pressure_sensitivity_api[] = { | |||||
| {0, "AUTOMATIC", 0, "Automatic", "Automatically switch between Wintab or Window Tablet API"}, | |||||
| {USER_DISABLE_NATIVE_TABLET_API, "WINTAB", 0, "Wintab", "Use Wintab API"}, | |||||
| {USER_DISABLE_WINTAB, "WINDOWNTABLETAPI", 0, "Native", "Use Windows Tablet API (Windows 8 and above)"}, | |||||
| {USER_DISABLE_NATIVE_TABLET_API|USER_DISABLE_WINTAB, "NONE", 0, "None", "Disable both Wintab and Windows Tablet API"}, | |||||
| {0, NULL, 0, NULL, NULL} | |||||
| }; | |||||
| static const EnumPropertyItem view_zoom_styles[] = { | static const EnumPropertyItem view_zoom_styles[] = { | ||||
| {USER_ZOOM_CONT, "CONTINUE", 0, "Continue", "Old style zoom, continues while moving mouse up or down"}, | {USER_ZOOM_CONT, "CONTINUE", 0, "Continue", "Old style zoom, continues while moving mouse up or down"}, | ||||
| {USER_ZOOM_DOLLY, "DOLLY", 0, "Dolly", "Zoom in and out based on vertical mouse movement"}, | {USER_ZOOM_DOLLY, "DOLLY", 0, "Dolly", "Zoom in and out based on vertical mouse movement"}, | ||||
| Context not available. | |||||
| RNA_def_property_ui_text(prop, "Softness", | RNA_def_property_ui_text(prop, "Softness", | ||||
| "Adjusts softness of the low pressure response onset using a gamma curve"); | "Adjusts softness of the low pressure response onset using a gamma curve"); | ||||
| prop = RNA_def_property(srna, "pressure_api", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_bitflag_sdna(prop, NULL, "uiflag2"); | |||||
| RNA_def_property_enum_items(prop, pressure_sensitivity_api); | |||||
| RNA_def_property_ui_text(prop, "Pressure sensitivity API", "Select the API to use for pressure sensitivity"); | |||||
| #ifdef WITH_INPUT_NDOF | #ifdef WITH_INPUT_NDOF | ||||
| /* 3D mouse settings */ | /* 3D mouse settings */ | ||||
| /* global options */ | /* global options */ | ||||
| Context not available. | |||||