れいちょんさんこんにちは。
これ↓で上と左入力中に右押しで、上のみになる状態になりませんでしょうか?
※ダメな場合、「キーボード同時押しチェッカー」などで、キーボードをチェックすると良いと思いますm(__)m
#include "DxLib.h"
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
{
ChangeWindowMode( TRUE ) ; DxLib_Init(); SetDrawScreen( DX_SCREEN_BACK ) ;
while( ProcessMessage() == 0 )
{
ClearDrawScreen() ;
int U=0,D=0,L=0,R=0;
if( CheckHitKey( KEY_INPUT_UP )==1){ U=1; } // 上キー
if( CheckHitKey( KEY_INPUT_DOWN )==1){ D=1; } // 下キー
if( CheckHitKey( KEY_INPUT_LEFT )==1){ L=1; } // 上キー
if( CheckHitKey( KEY_INPUT_RIGHT )==1){ R=1; } // 下キー
if(L==1&&R==1){L=0;R=0;}
DrawFormatString( 0, 62, GetColor(255,255,255),"U(%d) D(%d) L(%d) R(%d)",U,D,L,R ) ;
ScreenFlip() ;
}
DxLib_End() ;
return -1 ;
}