<commit_before>/*******************************************************************************
 * This file is part of TERMINAL RECALL
 * Copyright (c) 2015 <NAME>
 * Part of the jTRFP.org project
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl.html
 * 
 * Contributors:
 *     chuck - initial API and implementation
 ******************************************************************************/

package org.jtrfp.trcl.io;

import org.jtrfp.trcl.beh.ui.AfterburnerBehavior;
import org.jtrfp.trcl.beh.ui.UserInputRudderElevatorControlBehavior;
import org.jtrfp.trcl.beh.ui.UserInputThrottleControlBehavior;
import org.jtrfp.trcl.beh.ui.UserInputWeaponSelectionBehavior;
import org.jtrfp.trcl.ext.tr.GamePauseFactory;
import org.jtrfp.trcl.ext.tr.ViewSelectFactory;
import org.jtrfp.trcl.gui.ControllerInputDevicePanel.ControllerConfiguration;
import org.jtrfp.trcl.gui.SatelliteViewToggle;
import org.springframework.stereotype.Component;


/**
 * Default (initial config) for Keyboard
 * control mapping for Terminal Velocity / Fury3
 * @author <NAME>
 *
 */

@Component
public class KeyboardDefaultConf extends ControllerConfiguration {

    public KeyboardDefaultConf(){
	super();
	this.setIntendedController("Keyboard");
	
	this.getEntryMap().put("SPACE", new ConfEntry(UserInputWeaponSelectionBehavior.FIRE          ,"SPACE",1,0 ));
	this.getEntryMap().put("TAB"  , new ConfEntry(SatelliteViewToggle.SATELLITE_TOGGLE           ,"TAB"  ,1,0 ));
	this.getEntryMap().put("LEFT" , new ConfEntry(UserInputRudderElevatorControlBehavior.RUDDER  ,"LEFT" ,1,0 ));
	this.getEntryMap().put("RIGHT", new ConfEntry(UserInputRudderElevatorControlBehavior.RUDDER  ,"RIGHT",-1,0));
	this.getEntryMap().put("UP"   , new ConfEntry(UserInputRudderElevatorControlBehavior.ELEVATOR,"UP"   ,1,0 ));
	this.getEntryMap().put("DOWN" , new ConfEntry(UserInputRudderElevatorControlBehavior.ELEVATOR,"DOWN" ,-1,0));
	this.getEntryMap().put("A"    , new ConfEntry(UserInputThrottleControlBehavior.THROTTLE_DELTA,"A"    ,1,0 ));
	this.getEntryMap().put("Z"    , new ConfEntry(UserInputThrottleControlBehavior.THROTTLE_DELTA,"Z"    ,-1,0));
	this.getEntryMap().put("P"    , new ConfEntry(GamePauseFactory.PAUSE                                ,"P"    ,1,0 ));
	this.getEntryMap().put("V"    , new ConfEntry(ViewSelectFactory.VIEW                                ,"V"    ,1,0 ));
	this.getEntryMap().put("F"    , new ConfEntry(AfterburnerBehavior.AFTERBURNER                ,"F"    ,1,0 ));
    }//end constructor
}//end KeyboardDefaultConf<commit_msg>Add F3 to pause in default keyboard conf.<commit_after>/*******************************************************************************
 * This file is part of TERMINAL RECALL
 * Copyright (c) 2015 <NAME>
 * Part of the jTRFP.org project
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl.html
 * 
 * Contributors:
 *     chuck - initial API and implementation
 ******************************************************************************/

package org.jtrfp.trcl.io;

import org.jtrfp.trcl.beh.ui.AfterburnerBehavior;
import org.jtrfp.trcl.beh.ui.UserInputRudderElevatorControlBehavior;
import org.jtrfp.trcl.beh.ui.UserInputThrottleControlBehavior;
import org.jtrfp.trcl.beh.ui.UserInputWeaponSelectionBehavior;
import org.jtrfp.trcl.ext.tr.GamePauseFactory;
import org.jtrfp.trcl.ext.tr.ViewSelectFactory;
import org.jtrfp.trcl.gui.ControllerInputDevicePanel.ControllerConfiguration;
import org.jtrfp.trcl.gui.SatelliteViewToggle;
import org.springframework.stereotype.Component;


/**
 * Default (initial config) for Keyboard
 * control mapping for Terminal Velocity / Fury3
 * @author <NAME>
 *
 */

@Component
public class KeyboardDefaultConf extends ControllerConfiguration {

    public KeyboardDefaultConf(){
	super();
	this.setIntendedController("Keyboard");
	
	this.getEntryMap().put("SPACE", new ConfEntry(UserInputWeaponSelectionBehavior.FIRE          ,"SPACE",1,0 ));
	this.getEntryMap().put("TAB"  , new ConfEntry(SatelliteViewToggle.SATELLITE_TOGGLE           ,"TAB"  ,1,0 ));
	this.getEntryMap().put("LEFT" , new ConfEntry(UserInputRudderElevatorControlBehavior.RUDDER  ,"LEFT" ,1,0 ));
	this.getEntryMap().put("RIGHT", new ConfEntry(UserInputRudderElevatorControlBehavior.RUDDER  ,"RIGHT",-1,0));
	this.getEntryMap().put("UP"   , new ConfEntry(UserInputRudderElevatorControlBehavior.ELEVATOR,"UP"   ,1,0 ));
	this.getEntryMap().put("DOWN" , new ConfEntry(UserInputRudderElevatorControlBehavior.ELEVATOR,"DOWN" ,-1,0));
	this.getEntryMap().put("A"    , new ConfEntry(UserInputThrottleControlBehavior.THROTTLE_DELTA,"A"    ,1,0 ));
	this.getEntryMap().put("Z"    , new ConfEntry(UserInputThrottleControlBehavior.THROTTLE_DELTA,"Z"    ,-1,0));
	this.getEntryMap().put("P"    , new ConfEntry(GamePauseFactory.PAUSE                                ,"P"    ,1,0 ));
	this.getEntryMap().put("F3"    , new ConfEntry(GamePauseFactory.PAUSE                                ,"F3"  ,1,0 ));
	this.getEntryMap().put("V"    , new ConfEntry(ViewSelectFactory.VIEW                                ,"V"    ,1,0 ));
	this.getEntryMap().put("F"    , new ConfEntry(AfterburnerBehavior.AFTERBURNER                ,"F"    ,1,0 ));
    }//end constructor
}//end KeyboardDefaultConf
{'fraction_non_alphanumeric': 0.17624865253323752, 'fraction_numerical': 0.011318720804886813, 'mean_word_length': 4.5837512537612835, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7555320', 'n_tokens_mistral': 1786, 'n_tokens_neox': 1735, 'n_words': 309}