/config.py
# Configuration. Edit this file by hand, but beware, it is a python file
# and the game won't start if it does not parse correctly.

# These are modules necessary for certain constants used here
from pygame.locals import *
from constants import *

# Main config, for global options
librarypath = "/media/audio/BMS/library"
keytimeout = 250	# milliseconds

# Game config, for various game types

bm = {
	'format': 'IIDXFormat',
	'keymap':
		{K_SPACE:0, K_z:1, K_s:2, K_x:3, K_d:4, K_c:5, K_f:6, K_v:7},
	'jsbuttonmap':
		{ 3: 1, 6: 2, 2: 3, 7: 4, 1: 5, 4: 6 },
	'jsaxismap':
		{ (0,-1.0): 7, (0,0.0): 7, (1,-1.0): 0, (1,0.0): 0, (1,1.0): 0 },
	'timings':
		#[(15,JUDGE_FGREAT), (35,JUDGE_GREAT), (50,JUDGE_GOOD), (80,JUDGE_BAD), (100,JUDGE_POOR)]
		[(20,JUDGE_FGREAT), (42,JUDGE_GREAT), (70,JUDGE_GOOD), (250,JUDGE_BAD), (1000,JUDGE_POOR)]
}

popn = {
	'format': 'PopnFormat',
}

# game type mapping
gametypes = {
	'beatmania': bm,	# For now
	'IIDX': bm,
	'Popn': popn
}