サイドボタンを検出したいマウスは、MAD CATZ社製のR.A.T. TE(MC-RTE-WH /JAN: 4580398814343)です
このマウスで以下のコードを実行しましたが、サイドボタンが検出されることはありませんでした
#include "DxLib.h"
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
{
ChangeWindowMode( true );
if( DxLib_Init() == -1 ) return -1;
SetDrawScreen( DX_SCREEN_BACK ) ;
while( ProcessMessage() == 0 )
{
ClearDrawScreen() ;
if (GetMouseInput() & MOUSE_INPUT_1) DrawString(10, 10, "M1", GetColor(255, 255, 255));
if (GetMouseInput() & MOUSE_INPUT_2) DrawString(10, 10, "M2", GetColor(255, 255, 255));
if (GetMouseInput() & MOUSE_INPUT_3) DrawString(10, 10, "M3", GetColor(255, 255, 255));
if (GetMouseInput() & MOUSE_INPUT_4) DrawString(10, 10, "M4", GetColor(255, 255, 255));
if (GetMouseInput() & MOUSE_INPUT_5) DrawString(10, 10, "M5", GetColor(255, 255, 255));
if (GetMouseInput() & MOUSE_INPUT_6) DrawString(10, 10, "M6", GetColor(255, 255, 255));
if (GetMouseInput() & MOUSE_INPUT_7) DrawString(10, 10, "M7", GetColor(255, 255, 255));
if (GetMouseInput() & MOUSE_INPUT_8) DrawString(10, 10, "M8", GetColor(255, 255, 255));
if (CheckHitKeyAll())DrawString(10, 30, "any", GetColor(255, 255, 255));
ScreenFlip() ;
}
DxLib_End() ;
return 0 ;
}