Hajime Hoshi
e628350d4e
uidriver/glfw: Bug fix: Initializing order mattered
...
Especially on Linux, the window size and the window position must
be initialized in this order.
Fixes #1118
2020-03-28 23:37:21 +09:00
Hajime Hoshi
34acf788d2
uidriver/glfw: Bug fix: Call Maximize explictly instead of the hint
...
Fixes #1117
2020-03-28 22:34:01 +09:00
Hajime Hoshi
4fe5acd711
ui: Panic on MaximizeWindow when the window is not resizable
...
On Windows, the window could be maximized even when the window was
not resizable. This behavior is confusing. Forbid it so that the
behavior will be clearer.
2020-03-28 22:08:48 +09:00
Hajime Hoshi
3e244d7a7c
uidriver/glfw: Bug fix: compile error on Linux
2020-03-28 21:29:24 +09:00
Hajime Hoshi
8cca713d74
uidriver/glfw: Bug fix: adjustWindowPosition should consider the monitor position
2020-03-28 21:26:57 +09:00
Hajime Hoshi
0a5126f776
uidriver/glfw: Bug fix: Do not use the window position for monitors
...
Especially in the initial phase before calling Run/RunGame, the
window position is not reliable and then getting the device scale
factor does not make sense based on the window position. Avoid
using the window position, and instead use the glfw.Monitor.
2020-03-28 21:13:30 +09:00
Hajime Hoshi
7b5fb0a0d0
ui: Bug fix: The window was not shown on the secondary monitor on launching
...
This change changes the behavior of WindowPosition /
SetWindowPosition. The window position is now a relative position
and the origin position is the left-upper of the current monitor.
Fixes #1115
2020-03-28 19:51:47 +09:00
Hajime Hoshi
eb5f5485b3
examples/mascot: Add comments
2020-03-28 16:40:00 +09:00
Hajime Hoshi
5e4e76d75c
devicescale: Fix comments
2020-03-28 16:31:38 +09:00
Hajime Hoshi
d16477617e
devicescale: Bug fix: Wrong calculation to convert Y
...
Updates #807
Fixes #1113
2020-03-28 16:27:58 +09:00
Hajime Hoshi
e9508f8fbd
examples/windowsize: Bug fix: Key I was assigned for multiple purposes
2020-03-28 15:29:02 +09:00
Hajime Hoshi
844dbc4a9b
examples/windowsize: Better instruction message
2020-03-28 15:27:31 +09:00
Hajime Hoshi
bc3d1393a6
mobile/ebitenmobileview: Implement gamepads' SDLID on Android
...
Fixes #1083
2020-03-25 02:28:30 +09:00
Hajime Hoshi
4ec49dd4cf
mobile/ebitenmobileview: Implement Android gamepad axes
...
Updates #1083
2020-03-25 01:15:43 +09:00
Hajime Hoshi
237498e51f
ui: Add an optional function Draw function to Game interface ( #1107 )
...
This change adds an optional function Draw to the Game interface.
With Draw function, the game logic and rendering are separate.
There are some benefits:
* The API is clearer and easier to understand.
* When TPS < FPS, smoother rendering can be performed without
changing the game logic depending on TPS.
* Porting to XNA, which has separate functions Update and Draw,
would be a little easier.
Draw is optional due to backward compatibility. Game interface was
already used before v1.11.x in mobile packages, and adding a
function would break existing code unfortunately. Then, we adopted
switching the behavior based on whether Draw is implemented or not
by type assertions.
IsDrawingSkipped will always return false when Draw is implemented.
Fixes #1104
2020-03-24 12:01:37 +09:00
Hajime Hoshi
c5a7d5d6a9
Fix .travis.yml for external repositories
2020-03-23 12:34:06 +09:00
Hajime Hoshi
e7eab6a8f3
Add Steven Xie to AUTHORS
2020-03-23 11:10:53 +09:00
Steven Xie
c9a28219e8
cmd/ebitenmobile: Add newline to usage output ( #1109 )
2020-03-23 11:10:09 +09:00
Hajime Hoshi
4d2a0287b5
Bug fix: some generators did not work due to a lacked package
...
Updates #926
2020-03-23 01:36:21 +09:00
Hajime Hoshi
8fcee54849
mobile/ebitenmobileview: Implement Android gamepad buttons
...
This is still work in progress.
Updates #1083
2020-03-23 01:30:17 +09:00
Hajime Hoshi
37a8ae06c5
example/mascot: Use vx16 instead of dir
2020-03-22 17:31:46 +09:00
Hajime Hoshi
77b7e961ff
example/mascot: Remove unused variable 'state'
2020-03-22 16:48:55 +09:00
Hajime Hoshi
4eedeb6ab7
example: Add mascot
...
This change also revert ScreenSizeInFullscree from the deprecated
state.
Fixes #1108
2020-03-22 16:30:48 +09:00
Hajime Hoshi
63caca720b
ui: Bug fix: Compile error on Windows
2020-03-21 22:16:23 +09:00
Hajime Hoshi
f317f3b5fd
ui: Add fuctions to maximize or minimize the window
...
This change adds these functions:
* MaximizeWindow
* IsWindowMaximized
* MinimizeWIndow
* IsWindowMinimized
* RestoreWindow
Fixes #994
2020-03-21 22:13:58 +09:00
Hajime Hoshi
60c6626235
event: Remove the directory
2020-03-21 03:34:08 +09:00
Hajime Hoshi
978ee26898
ui: Add function aliases *OnUnfocused for *InBackground
...
Now a window can be floating with SetWindowFloating, the functions
that have suffix 'IsBackground' seems misleading. However, we
cannot rename them due to backward compatibility. Then, let's add
aliases and revisit them when updating the major version of Ebiten.
Fixes #1102
2020-03-21 00:42:00 +09:00
Hajime Hoshi
56358fd0c4
ui: Rename IsForeground -> IsFocused
...
Updates #1102
2020-03-21 00:12:47 +09:00
Hajime Hoshi
4ef3b3e804
ui: Add SetWindowFloating / IsWindowFloating
...
Fixes #880
2020-03-20 22:16:27 +09:00
Hajime Hoshi
bcf2d409ef
Update Go version
2020-03-20 14:51:56 +09:00
Hajime Hoshi
f272da2980
examples/platformer: Add jumps
...
Fixes #1062
2020-03-19 02:11:03 +09:00
Hajime Hoshi
c6559f4f8e
examples/platformer: Adjust screen size
2020-03-19 01:26:34 +09:00
Hajime Hoshi
c36d4678a3
mipmap: Bug fix: DrawTriangles with a scale-only color matrix should be optimized
...
Fixes #1101
2020-03-17 02:48:29 +09:00
Hajime Hoshi
d256eaa846
vector: Add comments
2020-03-17 00:17:25 +09:00
Hajime Hoshi
1fdab58ff5
vector: Add FillOptions
2020-03-16 23:49:55 +09:00
Hajime Hoshi
4b63be0156
graphics: Use float64 in GeoM
...
The reason why float32 was adopted was forgotten. Using float64
should not be problematic.
Fixes #883
2020-03-16 00:38:33 +09:00
Hajime Hoshi
6bc62b8f17
uidriver/glfw: Update comments
2020-03-15 15:42:05 +09:00
Hajime Hoshi
cebc203e6f
cmd/ebitenmobile: Bug fix: .exe was requried on Windows
...
On Windows, executable files must have .exe extension, or
exec.LookPath since exec.LookPath checks %PATHEXT%.
This fixes the issue that ebitenmobile didn't invoke the original
gobind wrapper and then didn't include and compile some Java files.
Fixes #1096
2020-03-05 01:05:59 +09:00
Hajime Hoshi
b4a9538e1d
graphicsdriver/opengl/gl: Remove a misspelled unused const
2020-02-26 12:06:47 +09:00
Hajime Hoshi
08bb0834cc
Use Go 1.14 by default at .travis.yml
2020-02-26 11:45:50 +09:00
Hajime Hoshi
e3d1e7784e
cmd/ebitenmobile: Refactoring
2020-02-24 17:50:01 +09:00
Hajime Hoshi
5040b3bcfc
thread: Add comments
2020-02-24 01:54:52 +09:00
Hajime Hoshi
00e78c1eae
thread: Close channels
2020-02-24 01:50:23 +09:00
Hajime Hoshi
c166fe8eea
Update GLFW to v3.3.2
...
Fixes #1086
2020-02-23 03:10:38 +09:00
Hajime Hoshi
fd69f58dae
input: Add comments about mobiles
...
Updates #237
Updates #1090
2020-02-23 02:09:28 +09:00
Hajime Hoshi
3af869732c
uidriver/mobile: Implement InputChars for gomobile-build
...
This change also fixes InputChars to return only printable Unicode
chars on Android.
Updates #237
2020-02-23 01:01:40 +09:00
Hajime Hoshi
de52eb75e4
mobile/ebitenmobileview: Implement InputChars on Android / ebitenmobile
...
Updates #237
2020-02-23 00:51:49 +09:00
Hajime Hoshi
0ea5e65c92
mobile/ebitenmobileview: Bug fix: compile error
2020-02-23 00:36:40 +09:00
Hajime Hoshi
a208a026f6
uidriver/mobile: Implement keyboard key inputs for gomobile-build
...
Updates #237
2020-02-22 23:57:16 +09:00
Hajime Hoshi
1dd0c22510
mobile/ebitenmobileview: Bug fix: Wrong key names
2020-02-22 13:45:01 +09:00