# $NetBSD: xorg.conf.C3x00,v 1.4 2023/08/08 14:38:44 tsutsui Exp $

Section "ServerLayout"
	Identifier	"wsfb"
	Screen	0	"Screen0" 0 0
	InputDevice	"TouchScreen0" "CorePointer"
	InputDevice	"Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
#	FontPath	"/usr/pkg/share/fonts/X11/TTF/"
EndSection

Section "ServerFlags"
	# Explicitly prefer keyboard options defined in xorg.conf
	Option		"AutoAddDevices" "false"
EndSection

Section "InputDevice"
	Identifier	"Keyboard0"
	Driver		"kbd"
	Option		"XkbModel" 	  "sl-c3x00"
EndSection

Section "InputDevice"
	Identifier	"TouchScreen0"
	Driver		"ws"

	Option		"device"	"/dev/wsmouse"
	Option		"ZAxisMapping"	"4 5"

	Option		"MinX"		"0"
	Option		"MaxX"		"479"
	Option		"MinY"		"0"
	Option		"MaxY"		"639"

	Option		"Rotate"	"CW"
EndSection

Section "Device"
	Identifier	"Wsdisplay0"
	Driver		"wsfb"

	Option		"Rotate"	"CW"
EndSection

Section "Monitor"
	Identifier	"Monitor"
	VendorName	"Sharp"
	ModelName	"Zaurus"
EndSection

Section "Screen"
	Identifier	"Screen0"
	Device		"Wsdisplay0"
	Monitor		"Monitor"
	DefaultDepth	16

	SubSection "Display"
		Depth	16
	EndSubSection
EndSection
