/******************************************************************************* * Copyright 2013 Geoscience Australia * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ******************************************************************************/ package au.gov.ga.earthsci.worldwind.common.input.hydra; import java.util.Arrays; /** * Represents an stick changed event on the Razer Hydra. * * @author Michael de Hoog (michael.dehoog@ga.gov.au) */ public class HydraStickEvent { /** * Absolute analog stick values for controller 1. */ public final float[] stick1 = new float[2]; /** * Absolute analog stick values for controller 2. */ public final float[] stick2 = new float[2]; /** * Delta change analog stick values for controller 1. */ public final float[] delta1 = new float[2]; /** * Delta change analog stick values for controller 2. */ public final float[] delta2 = new float[2]; @Override public String toString() { return "Stick: controller 1 = " + Arrays.toString(stick1) + ", controller 2 = " + Arrays.toString(stick2); } }