Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_userpref.py
| Show First 20 Lines • Show All 1,498 Lines • ▼ Show 20 Lines | |||||
| class USERPREF_PT_input_devices_tablet(PreferencePanel): | class USERPREF_PT_input_devices_tablet(PreferencePanel): | ||||
| bl_label = "Tablet" | bl_label = "Tablet" | ||||
| bl_parent_id = "USERPREF_PT_input_devices" | bl_parent_id = "USERPREF_PT_input_devices" | ||||
| def draw_props(self, context, layout): | def draw_props(self, context, layout): | ||||
| prefs = context.preferences | prefs = context.preferences | ||||
| inputs = prefs.inputs | inputs = prefs.inputs | ||||
| import sys | |||||
| if sys.platform[:3] == "win": | |||||
| layout.prop(inputs, "tablet_api") | |||||
| layout.separator() | |||||
| flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=False) | flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=False) | ||||
| flow.prop(inputs, "pressure_threshold_max") | flow.prop(inputs, "pressure_threshold_max") | ||||
| flow.prop(inputs, "pressure_softness") | flow.prop(inputs, "pressure_softness") | ||||
| class USERPREF_PT_input_devices_ndof(PreferencePanel): | class USERPREF_PT_input_devices_ndof(PreferencePanel): | ||||
| bl_label = "NDOF" | bl_label = "NDOF" | ||||
| ▲ Show 20 Lines • Show All 593 Lines • Show Last 20 Lines | |||||