Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set empty Gdx.* fields and made get[Component]() methods work in headless backend #2316

Merged
merged 1 commit into from
Sep 9, 2014

Conversation

dermetfan
Copy link
Contributor

HeadlessApplication#get[Input/Graphics/Audio]() returned null even though HeadlessApplication had corresponding mock implementations.
Correct me if I'm wrong, but I guess this was because the getters were forgotten when those mock implementations were added.

I don't think they returned null intentionally because the Gdx.[audio/graphics] fields were set (Gdx.input wasn't though, so it seems it was forgotten as well).

HeadlessApplication#get[Input/Graphics/Audio]() returned null even though HeadlessApplication had mock implementations. Correct me if I'm wrong, but I guess this was because the getters were forgotten when those mock implementations were added. I don't think they returned null intentionally because the Gdx.[audio/graphics] fields were set (Gdx.input not though, so it seems it was forgotten as well).
@dermetfan dermetfan changed the title set empty Gdx.* fields and made get[Component]() methods work set empty Gdx.* fields and made get[Component]() methods work in headless backend Sep 9, 2014
@MobiDevelop
Copy link
Member

Seems reasonable. Thanks.

MobiDevelop added a commit that referenced this pull request Sep 9, 2014
set empty Gdx.* fields and made get[Component]() methods work in headless backend
@MobiDevelop MobiDevelop merged commit e6cd3e9 into libgdx:master Sep 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants