improve usability of ExampleBrowser
store command-line arguments in bulletDemo.txt save/load of configuration, save demo name instead of index add setBackgroundColor as example (background_color_red) and mouse move/wheel speed config (mouse_wheel_multiplier and mouse_move_multiplier) (saved after changing the demo) default btIDebugDraw colors can be changed b3CommandLineArgs::GetCmdLineArgument returns bool, and b3CommandLineArgs::addArgs added fix copy/paste
This commit is contained in:
@@ -18,7 +18,7 @@ using namespace Gwen::ControlsInternal;
|
||||
GWEN_CONTROL_CONSTRUCTOR( ColorPicker )
|
||||
{
|
||||
SetMouseInputEnabled( true );
|
||||
|
||||
SetKeyboardInputEnabled(true);
|
||||
SetSize( 256, 150 );
|
||||
CreateControls();
|
||||
SetColor( Gwen::Color( 50, 60, 70, 255 ) );
|
||||
|
||||
@@ -73,7 +73,8 @@ bool Gwen::Platform::SetClipboardText( const Gwen::UnicodeString& str )
|
||||
|
||||
// Copy the string into the buffer
|
||||
wchar_t* buffer = (wchar_t*) GlobalLock( clipbuffer );
|
||||
wcscpy_s( buffer, iDataSize, str.c_str() );
|
||||
//wcscpy_s( buffer, iDataSize, str.c_str() );
|
||||
memcpy( buffer, str.c_str() ,iDataSize);
|
||||
GlobalUnlock(clipbuffer);
|
||||
|
||||
// Place it on the clipboard
|
||||
|
||||
Reference in New Issue
Block a user