Difference between revisions of "Dragonofair0/GSoC2014 project idea"

From The Battle for Wesnoth Wiki
Line 7: Line 7:
 
==Description==
 
==Description==
 
<h4>SDL2 Project Proposal</h4>
 
<h4>SDL2 Project Proposal</h4>
'''Descriptive Summary of Proposal'''
+
'''Descriptive Summary of Proposal'''<br>
 
I would like to work on moving the event and input handling from SDL 1.2 handling to SDL 2.0.  To accomplish this I will be aware of the many differences between the versions including how text input is handled and the differences in event handling.  In performing both these tasks, I will be aware and considerate of a possible Android or iOS port (since I would love to see that myself), so that my code will perform as smoothly on mobile operating systems as it already does on desktop OSes.
 
I would like to work on moving the event and input handling from SDL 1.2 handling to SDL 2.0.  To accomplish this I will be aware of the many differences between the versions including how text input is handled and the differences in event handling.  In performing both these tasks, I will be aware and considerate of a possible Android or iOS port (since I would love to see that myself), so that my code will perform as smoothly on mobile operating systems as it already does on desktop OSes.
  
'''First Level Sections'''
+
'''First Level Sections'''<br>
 
One major change in event handling is how the thought process behind the keyboard works.  The keyboard has become like a many buttoned controller, instead of text inputs.  This will be a major change I will work on, in order to make Battle for Wesnoth more keyboard-layout independent.  Mouse input will remain similar, except for the mousewheel which, with better support in SDL 2.0, will be more useful for scrolling around the screen.  This change may also help with two-finger scrolling across a screen where the comptuer reports this as a mousewheel, ultimately aiding in the creation of a mobile port.  Event handling will have similar ideas in mind.  While the actual code has not changed very much, those differences will be taken care of as well as a new style of event handler for certain important events, i.e. events that affect the state of the app (open/closed) will be monitored more closely so that progress may be saved.  I have taken this into consideration along with the other event handler changes in order to deal with the "garbage collector," which is the nightmare of mobile operating systems.  I fear that in the near future (at least with Windows machines), that the garbage collector's presence might make an appearance in desktops, and this measure would increase the longevity of my changes as well as more easily enable mobile ports.
 
One major change in event handling is how the thought process behind the keyboard works.  The keyboard has become like a many buttoned controller, instead of text inputs.  This will be a major change I will work on, in order to make Battle for Wesnoth more keyboard-layout independent.  Mouse input will remain similar, except for the mousewheel which, with better support in SDL 2.0, will be more useful for scrolling around the screen.  This change may also help with two-finger scrolling across a screen where the comptuer reports this as a mousewheel, ultimately aiding in the creation of a mobile port.  Event handling will have similar ideas in mind.  While the actual code has not changed very much, those differences will be taken care of as well as a new style of event handler for certain important events, i.e. events that affect the state of the app (open/closed) will be monitored more closely so that progress may be saved.  I have taken this into consideration along with the other event handler changes in order to deal with the "garbage collector," which is the nightmare of mobile operating systems.  I fear that in the near future (at least with Windows machines), that the garbage collector's presence might make an appearance in desktops, and this measure would increase the longevity of my changes as well as more easily enable mobile ports.
  

Revision as of 01:54, 14 March 2014


This page is related to Summer of Code 2014
See the list of Summer of Code 2014 Ideas



This is a Summer of Code 2014 student page


ATTENTION

This page is a work in progress However, my descriptions section is fairly complete.

Description

SDL2 Project Proposal

Descriptive Summary of Proposal
I would like to work on moving the event and input handling from SDL 1.2 handling to SDL 2.0. To accomplish this I will be aware of the many differences between the versions including how text input is handled and the differences in event handling. In performing both these tasks, I will be aware and considerate of a possible Android or iOS port (since I would love to see that myself), so that my code will perform as smoothly on mobile operating systems as it already does on desktop OSes.

First Level Sections
One major change in event handling is how the thought process behind the keyboard works. The keyboard has become like a many buttoned controller, instead of text inputs. This will be a major change I will work on, in order to make Battle for Wesnoth more keyboard-layout independent. Mouse input will remain similar, except for the mousewheel which, with better support in SDL 2.0, will be more useful for scrolling around the screen. This change may also help with two-finger scrolling across a screen where the comptuer reports this as a mousewheel, ultimately aiding in the creation of a mobile port. Event handling will have similar ideas in mind. While the actual code has not changed very much, those differences will be taken care of as well as a new style of event handler for certain important events, i.e. events that affect the state of the app (open/closed) will be monitored more closely so that progress may be saved. I have taken this into consideration along with the other event handler changes in order to deal with the "garbage collector," which is the nightmare of mobile operating systems. I fear that in the near future (at least with Windows machines), that the garbage collector's presence might make an appearance in desktops, and this measure would increase the longevity of my changes as well as more easily enable mobile ports.

IRC

dragonofair0

Questionnaire

SoC Information for Google