Commit Graph

39 Commits

Author SHA1 Message Date
Crypto City
65ad6ede62 Add simple support for separate mouse buttons 2020-02-09 04:04:05 +00:00
Crypto City
76de76b4e9 build integration and lumak's urho3d tweaks 2020-01-11 15:09:23 +00:00
Michael Tesch
c23159df2b
Hb cmake2 (#11)
* remove TBSystem::GetRoot.  fix glew header

* make runtime debug info an indepedent setting

* windows build on travis

* fix IOS and macos high-dpi

* fix win+sdl2 combo

* try to auto detect what can be make-all'd
2019-11-14 16:59:54 +01:00
Michael Tesch
00933a86e9
Hb cmake cleanup (#10)
* cleanup build system, modernize cmake

* build glfw and sdl2, w/ or w/o freetype

* fix android demo build

* win32 with CPack has PACKAGE target now

* added GLEW for windows

* bump to SDL2.0.10. fixes for building as subdir

* constexpr is always available these days.

* cleanup getwd() warning. add rpm to ubuntu packages

* dont use add_compile_definitions() for cmake, too new

* add rpm package to travis

* gh release packages

* build demo target on windows

* see if defines not working on winsodw
2019-11-12 15:45:00 +01:00
Michael Tesch
63608b34c6 packaging for hb 2019-11-07 18:23:47 +01:00
Michael Tesch
5ff2f27581 rework glfw and sdl2 libraries, add glfw emscripten build option 2019-11-07 15:35:46 +01:00
Michael Tesch
b647ebfe5b glfw demo working again 2019-01-24 17:58:54 +01:00
Michael Tesch
558d86d4e1 abstracting backend more 2019-01-24 12:36:21 +01:00
Michael Tesch
1050b6bbd2 fix some types 2019-01-23 14:58:52 +01:00
Emil Segerås
483ec58f5c Use ibeam cursor for edit fields. Fixes #77 2016-06-12 16:36:47 +02:00
Emil Segerås
e65907488c Fixed keyboard shortcuts on linux. 2015-07-26 09:57:44 +02:00
Emil Segerås
ec844e8cc7 Fixed keyboard shortcuts on osx.
Something changed once again in the new glfw version.
2015-07-26 09:32:45 +02:00
Emil Segerås
2f51f25369 Refactorized demo platform integration to better suit game loops.
Makes it easier to reuse the demo platform glue for other projects.
Especially game loops or platforms where rendering is set up in a
different order.

TB API change: Removed language file path from tb_core_init.
g_tb_lng->Load should be called manually after tb_core_init instead.
2015-07-02 14:27:53 +02:00
Emil Segerås
a2cabbb731 Make the demo find resources on os x. 2015-06-26 20:06:50 +02:00
Emil Segerås
4105bc5aec Cleanup linux ifdef in glfw port 2014-12-30 13:25:00 -08:00
Emil Segerås
41e7dcc5bc Added some more predefined keyboard shortcuts. 2014-11-02 18:54:15 +01:00
Emil Segerås
97b3fcce0e Fix for starting demo on osx. 2014-11-01 17:03:28 +01:00
Emil Segerås
d591064627 Refixed #10.
LINUX isn't defined anymore.
2014-11-01 13:04:31 +01:00
nsf
5156739fe6 Silence unused function warning in glfw portion of the demo app.
This function needs to be defined only starting from a certain version of the
GLFW, where it can actually be used. It's the drag'n'drop functionality.
2014-10-01 15:55:55 +06:00
Michel Paulissen
18d06ca00b Handling the keypad enter in port_glfw
Support for horizontal mouse scroll in tb_scroll_container
2014-09-16 10:59:14 +02:00
Emil Segerås
9fc99185ff Simplify include directories for demo. 2014-08-19 21:05:22 +02:00
Emil Segerås
8cac9c9eb8 Added configuration defines for default platform implementations.
Makes it easier to control stuff using a shared build system.
2014-07-25 21:26:11 +02:00
Emil Segerås
45de1c3be0 Fix for broken rendering after minimizing window in Demo on windows. 2014-05-20 21:56:28 +02:00
Emil Segerås
29f0f68b45 Workaround for glfw keyboard issue on linux.
Fixed issue #10
2014-05-18 21:46:55 +02:00
Emil Segerås
3d8843acd7 Fixed shortcut keys on osx. 2014-04-26 20:18:45 +02:00
Emil Segerås
ebd3d111f0 Added EVENT_TYPE_FILE_DROP, and CUSTOM.
Extend TBWidgetEvent by making it a TBTypedObject instead of adding even
more to it. Should perhaps refactorize it, but that will require lots of changes.

Implemented EVENT_TYPE_FILE_DROP for upcoming version of glfw (not used yet).
2014-04-21 13:48:08 +02:00
Emil Segerås
47636e061a Fix timer reschedule bug in demo app.
When non-delayed messages where fired repeatedly, the
reschedule method didn't schedule after the first time.
2014-03-02 21:45:07 +01:00
Emil Segerås
bc3d360b03 Renamed project namespace. 2014-01-16 21:03:56 +01:00
Emil Segerås
d17cf8e661 Renamed methods for core init/shutdown. 2014-01-16 21:03:07 +01:00
Emil Segerås
62c1265a89 Fixed some incorrect data type conversions. 2013-12-09 20:39:28 +01:00
Emil Segerås
aa28bfb27a Avoid glfw typing bug on osx.
There's several bugs left though.
Hopefully fixed in upcoming glfw releases.
2013-08-09 10:27:19 +02:00
Emil Segerås
a54be1bc5a Removed compilation warning. 2013-08-08 11:02:21 +02:00
Emil Segerås
961164d261 Fixed key combinations for linux & mac.
GLFW is now consistent across platforms and the WIN32 ifdef can be removed.

Also use the new window user pointer instead of global backend pointer.
2013-08-08 10:07:32 +02:00
Emil Segerås
a836d60619 Fixed key press repeat. 2013-08-07 20:24:29 +02:00
Emil Segerås
1660f57197 Updated to glfw 3.0.1 and fixed compilation errors. 2013-08-07 20:24:29 +02:00
Emil Segerås
c0241d173e Added touch event emulation to glfw demo app to make testing easier. 2013-07-10 21:05:56 +02:00
Emil Segerås
8c25e04e39 Major improvements to pointer/touch input:
List of changes:
-Refactorized virtual scroll methods and introduced virtual GetScrollInfo.
-Added TBScroller to do slow down scroll after panning.
-Added TBScrollerSnapListener for snapped smooth scrolling.
-Added keyboard scroll support in TBScrollContainer and TBSelectList.
-Added possibility to cancel EVENT_TYPE_CLICK for current touch (stopping scroll should not cause click)
-Added flag to TBWidgetEvent to distinguish cursor base pointer events from touch events (Fixes issue #2).
 --Pan TBEditField on touch pointer events instead of doing selection scroll.
 --Touch events should not result in setting the hover state automatically.
2013-07-10 21:03:44 +02:00
Emil Segerås
9c4f472ea4 Added EVENT_TYPE_SHORTCUT and moved shortcut keybindings to platform code. 2012-11-28 20:45:58 +01:00
Emil Segerås
9a7968cc07 Move demo & integration files to more suitable folders. 2012-11-13 18:25:41 +01:00