Is there a way to add a custom Pie Menu in 2.8?

Is there a way to make a custom pie menu in 2.8? I'd like to add one for switching between trackball and turntable navigation. It gets very annoying going into preferences when you just want to use trackball for sculpting and turntable for other things.

2. code it yourself, its not that difficult, you can use my pie menu addon as a starting point, if have never coded you might want to learn about python first or just copy the code below and put it in a file that ends with .py go to the Add-ons tab and click install, chose the file that you made with the code below.

This is a basic addon that should do the job, the default keymap is Ctrl + D

import bpy

bl_info = {
"author": "Syler",
"version": (0, 0, 0, 1),
"blender": (2, 80, 0),
"category": "3D view"
}

wm = bpy.context.window_manager

if not kc:
print('Keymap Error')
return
# object Mode
km = kc.keymaps.new(name='Object Mode', space_type='EMPTY')
# here you can chose the keymapping.
kmi = km.keymap_items.new(
VIEW3D_OT_PIE_template_call.bl_idname, 'D', 'PRESS', ctrl=True, shift=False)

def remove_hotkey():
km.keymap_items.remove(kmi)

def draw(self, context):
print("test")
layout = self.layout
prefs = context.preferences
inputs = prefs.inputs

pie.prop(inputs, "view_rotate_method", expand=True)

class VIEW3D_OT_PIE_template_call(bpy.types.Operator):
bl_idname = 'sop.sm_template'
bl_options = {'REGISTER', 'UNDO'}

def execute(self, context):
return {'FINISHED'}

def register():
bpy.utils.register_class(VIEW3D_MT_PIE_template)
bpy.utils.register_class(VIEW3D_OT_PIE_template_call)