動いた
1 parent ff59516 commit 6a6eda499be3befedf0b805229a5de5a0230cab5
n-konishi authored on 28 Jun 2018
Showing 2 changed files
View
4
app/src/main/java/org/ntlab/radishforandroidstudio/cactusClient/views/PlayerFragment.java
public boolean onEvent(PadEvent event) {
Vector3d charaVector3d = pocha.getDirection();
charaVector3d.normalize();//キャラの向きを単位ベクトルに
MotionEvent motionEvent = event.getMotionEvent();
//super.onTouch(motionEvent);
 
//super.onTouchEvent(motionEvent);
 
if (motionEvent.getAction() == MotionEvent.ACTION_DOWN || motionEvent.getAction() == MotionEvent.ACTION_MOVE) {
isTouched = true;
float maxX = motionEvent.getDevice().getMotionRange(MotionEvent.AXIS_X).getMax() / 2.0f;
View
4
app/src/main/java/org/ntlab/radishforandroidstudio/framework/RWT/RWTUIFragment.java
public boolean onEvent(PadEvent event) {
return false;
}
 
// public void setListener(PlayerFragment playerFragment) {
// listener = playerFragment;
// }
 
public View findViewById(int id) {
return v.findViewById(id);
}