no result !! on SystemProperty$
Archives Forums/BlitzPlus Bug Reports/no result !! on SystemProperty$
| ||
hello, this command line work correctly on BLITZ3D , but NO on blitz+ , result = 0 ? you have a idea ? di7=SystemProperty$("DirectInput7") hwnd=SystemProperty$("AppHWND") thank |
| ||
I believe BlitzPlus uses OpenGL. According to the documentation for BlitzPlus, SystemProperty does not admit the "AppHWND" or "DirectInput7" options. http://blitzbasic.com/bpdocs/command.php?name=SystemProperty&ref=2d_cat If you want to retrieve the HWND of your program, you can use a userlib for FindWindow: - User32 userlib (has FindWindow) - FindWindow description (MSDN) ;After installing the userlib... hwnd = FindWindow( "", "MyWindowTitle" ) |
| ||
I believe BlitzPlus uses OpenGL. Blitzplus -can- use OpenGL, but I thought it still defaulted to DirectX |
| ||
It defaults to DirectX 1 (not 7), but can use OpenGL or a native software driver. Blitz Plus also does not use Direct Input for the keyboard or mouse. It uses WM_INPUT. |
| ||
thank you for your response, I wanted to detect a xbox 360 joystick (joystick or name joy, xinput) properly with these functions, which works in Blitz3D, but I do not see how to do without it in BLITZ + ..... there is exemple code by Todd Riggins aka: Pepsi - FREEWARE ; DirectX7 Rumble Dll - BY: Todd Riggins aka: Pepsi - FREEWARE ; Demo #1 - Game Device Info Graphics 800,600,0,2 SetBuffer BackBuffer() di7=SystemProperty$("DirectInput7") hwnd=SystemProperty$("AppHWND") DX7RUMBLE_INIT%(hwnd, di7, 1) totalgamedevices=TOTAL_GAMEDEVICES%() ;GAMEDEVICE_RUNCONTROLPANEL%(0) ;GAMEDEVICE_REAQUIRE(0) ClsColor 34,85,119 While Not KeyDown(1) DX7RUMBLE_POLL() Cls Color 0,255,0 Text 0,0,"; DirectX7 Rumble Dll - BY: Todd Riggins aka: Pepsi - FREEWARE" Text 0,15,"; Demo #1 - Game Device Info - Press Escape to Exit!" Color 255,255,255 For j=0 To (totalgamedevices-1) Text 0,30+(j*(90+(12*15))),"("+Str$(j)+") "+GAMEDEVICE_NAME$(j) Text 0,45+(j*(90+(12*15))),"Force FeedBack Available="+Str$(FFB_AVAIL%(j)) Text 0,60+(j*(90+(12*15))),"Autocentered="+Str$(FFB_AUTOCENTER%(j,1)) For i=0 To 11 Text 0,90+(i*15)+(j*(90+(12*15))),"Button("+Str$(i)+")="+Str$(JOY_BUTTON%(j,i)) Next Text 150,90+(j*(90+(12*15))),"X Axis="+Str$(JOY_X_AXIS%(j)) Text 150,105+(j*(90+(12*15))),"Y Axis="+Str$(JOY_Y_AXIS%(j)) Text 150,120+(j*(90+(12*15))),"Z Axis="+Str$(JOY_Z_AXIS%(j)) Text 150,135+(j*(90+(12*15))),"RX Axis="+Str$(JOY_RX_AXIS%(j)) Text 150,150+(j*(90+(12*15))),"RY Axis="+Str$(JOY_RY_AXIS%(j)) Text 150,165+(j*(90+(12*15))),"RZ Axis="+Str$(JOY_RZ_AXIS%(j)) For i=0 To 1 Text 150,180+(i*15)+(j*(90+(12*15))),"Slider("+Str$(i)+")="+Str$(JOY_SLIDER%(j,i)) Next For i=0 To 3 Text 150,210+(i*15)+(j*(90+(12*15))),"POV("+Str$(i)+")="+Str$(JOY_POV%(j,i)) Next Next Flip Wend ; Release Dll's Aquired Memory! DX7RUMBLE_RELEASE() End |
| ||
but I do not see how to do without it in BLITZ + .... You might be able to write a user lib to handle it. |