summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Use an error flag for file device errorsBen Bridle17 hours
| | | | | | This was a change that was made in the latest revision of the specification (revision 2). The action port of the file device had previously reported successes, but it will now report errors instead.
* Gate gamepad support behind a feature flagBen Bridle17 hours
| | | | | | | | | This is to make it possible to compile bedrock-pc without gamepad support, which is useful when the target platform doesn't have the libraries for udev (required by the gilrs dependency). This commit is a bit of a hack, it'd be nice to implement this better some day.
* Print phosphor event loop errorsBen Bridle17 hours
| | | | | | | If the phosphor event loop could not be started, the returned error will be printed in the error message. This commit also updates the phosphor dependency to version 3.3.2, which returns the actual error object when an event loop error occurs.
* Add logging for starting and promoting a dynamic emulatorBen Bridle2025-07-15
| | | | | | This commit changes the message shown when starting the emulator with dynamic mode, to make it clear that the window will be hidden initially, and also adds a message for when the emulator window is made visible.
* Fix window not being made visible when input device is accessedBen Bridle2025-07-15
| | | | | | This is for when the emulator is started in dynamic mode. Reading from the input device wasn't making the window visible, because the break signal was only being fired when writing to the input device.
* Change scroll units from pixels to linesBen Bridle2025-07-08
| | | | | The input device now uses lines instead of pixels as the scroll unit. Reverts commit 2db5707.
* Invalidate the cached directory in the file device after a durationBen Bridle2025-07-08
| | | | | | | | | | | The most recent directory accessed by the file device is cached to improve performance when rapidly ascending and descending between sibling entries. This causes an issue where, in a sandboxed root directory that contains only files, a program will be unable to invalidate the cache and any changes to the directory outside the program will not be seen by the program. To fix this, the directory cache now only lasts for one second.
* Show window immediately in graphical modeBen Bridle2025-07-08
| | | | | | | This was an omission, the visible argument on the run method was added for this purpose. When starting the emulator in graphical mode, the window is shown immediately, without the program first having to access the input or screen devices.
* Document the --trust-files flag in the help stringBen Bridle2025-07-07
|
* Sandbox the file deviceBen Bridle2025-07-07
| | | | | | Unless the --trust-files switch is used, the file device will be sandboxed to a program-specific config folder placed according to the conventions of the operating system.
* Fix port mapping for file deviceBen Bridle2025-07-04
| | | | A mapping used by an older prototype of Bedrock was still in use.
* Fix scale factor used when scrolling by linesBen Bridle2025-07-04
| | | | Each line scrolled should be equivalent to 20 pixels, not 1/20 pixels.
* Wake the input device when the mouse is scrolledBen Bridle2025-07-04
| | | | This was omitted in error.
* Print a blank line after printing debug informationBen Bridle2025-07-04
|
* Initial commitBen Bridle2025-07-03