1
Window / [sfml2][linux] sf::Input::GetMouse* after creating window
« on: May 02, 2011, 10:47:16 pm »
So as long as mouse is unmoved I can't get its position? Looks like a bug.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#include <SFML/OpenGL.hpp>
#include <SFML/Window.hpp>
#include <iostream>
int main() {
sf::Window window(sf::VideoMode(800, 600), "SFML window");
window.Display();
std::cout << "x:" << window.GetInput().GetMouseX() << " y:" << window.GetInput().GetMouseX() << std::endl;
window.Close();
return 0;
}
<configuration>
<dllmap dll="csfml-@MODULE@-2" target="libcsfml-@MODULE@.so.2.0.0"/>
</configuration>
rake aborted!
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:136: syntax error, unexpected ',', expecting ']'
file "#{SODIR}/#{so_file}.so" => [*objs, SODIR] do
^
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:141: syntax error, unexpected kRESCUE, expecting kEND
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:148: syntax error, unexpected kDO_BLOCK, expecting kEND
SO_SRCS.each_key do |so_file|
^
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:149: syntax error, unexpected tSTRING_BEG, expecting kDO or '{' or '('
sh "#{INSTALL} #{SODIR}/#{so_file}.so #{LOCATION}"
^
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:151: syntax error, unexpected kRESCUE, expecting kEND
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:158: syntax error, unexpected kDO_BLOCK, expecting kEND
SO_SRCS.each_key do |so_file|
^
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:159: syntax error, unexpected tSTRING_BEG, expecting kDO or '{' or '('
sh "rm -f #{LOCATION}/#{so_file}.so"
^
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:162: syntax error, unexpected kRESCUE, expecting kEND
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:167: syntax error, unexpected $end, expecting kEND