Skip to content

Commit

Permalink
Set io.BackendPlatformName in Init
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasdaler committed May 11, 2019
1 parent 2193d49 commit 396e1df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imgui-SFML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ void Init(sf::Window& window, sf::RenderTarget& target, bool loadDefaultFont) {
io.BackendFlags |= ImGuiBackendFlags_HasGamepad;
io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors;
io.BackendFlags |= ImGuiBackendFlags_HasSetMousePos;
io.BackendPlatformName = "imgui_impl_sfml";

// init keyboard mapping
io.KeyMap[ImGuiKey_Tab] = sf::Keyboard::Tab;
Expand Down

0 comments on commit 396e1df

Please sign in to comment.