TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.09k stars 222 forks source link

Checkboxs and TextFields #115

Open ghost opened 8 years ago

ghost commented 8 years ago

-Added Checkboxs and TextFields. -Added A OnKeyPressed and a OnKeyReleased function to widget, for key inout. also added necessary functions to Panel. -Added two function to Input: -IsLetterFunction: Checks to see if a certain key code is a letter or symbol. -GetChar: Return a character based on key code -Added a few extra key code to Input -Added a GetClipboardContent and a SetClipboatrdContent function in Window and Win32Window -Added a DrawTexture function, in Renderer2D and BatchRenderer2D, that draws a textured quad

Orcolom commented 8 years ago

About the inputmap. Wont this be a problem with different style of keyboards? On a azerty keyboard the shiftkeys aren't at the same position as those on a qwerty.

ghost commented 8 years ago

Yes it will be but I couldn't find another way to do it, I am not that good with c++. But another, not that good way of doing it, could be to have a different shift key map for each different type of keyboard.