package com.kddi.system;

import javax.microedition.lcdui.keyboard.VirtualKeyboard;
import javax.microedition.util.ContextHolder;

public class PhoneSystem {
    public PhoneSystem(){};

    public static int getKeyState(boolean eightDirections) {
        VirtualKeyboard vk = ContextHolder.getVk();
        return vk.getKeyStatesVodafone();
    }

}

@@ -1,8 +1,602 @@
+/*%0A * Copyright 2021 ohayoyogi%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0A
 package 
@@ -611,19 +611,17 @@
 .system;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -670,17 +670,16 @@
 eyboard;
-%0D
 %0Aimport 
@@ -716,19 +716,17 @@
 tHolder;
-%0D%0A%0D
+%0A
 %0Apublic 
@@ -744,17 +744,16 @@
 System %7B
-%0D
 %0A    pub
@@ -772,19 +772,17 @@
 tem()%7B%7D;
-%0D%0A%0D
+%0A
 %0A    pub
@@ -834,17 +834,16 @@
 tions) %7B
-%0D
 %0A       
@@ -886,17 +886,16 @@
 getVk();
-%0D
 %0A       
@@ -932,18 +932,14 @@
 e();
-%0D
 %0A    %7D
-%0D%0A%0D
+%0A
 %0A%7D
-%0D
 %0A

implement PhoneSystem class